Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added task to auto generate Esxi id #58

Merged
merged 2 commits into from
May 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion roles/powerflex_sdc/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,4 @@ powerflex_sdc_name: sdc_test
powerflex_sdc_performance_profile: Compact
file_glob_name: sdc
i_am_sure: 1
powerflex_sdc_esxi_guid: "d422ecab-af6f-4e0c-a059-333ac89cfb42"
powerflex_role_environment:
8 changes: 7 additions & 1 deletion roles/powerflex_sdc/tasks/register_esxi_sdc.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,14 @@
---
- name: Generating random GUID
register: powerflex_sdc_esxi_guid
ansible.builtin.shell: >
uuidgen
changed_when: powerflex_sdc_esxi_guid.rc == 0

- name: Register SDC and Set MDM IP addresses
register: powerflex_sdc_register_set_sdc_mdm
ansible.builtin.shell: >
esxcli system module parameters set -m scini -p "IoctlIniGuidStr={{ powerflex_sdc_esxi_guid }}
esxcli system module parameters set -m scini -p "IoctlIniGuidStr={{ powerflex_sdc_esxi_guid.stdout }}
IoctlMdmIPStr={{ powerflex_sdc_mdm_ips }} bBlkDevIsPdlActive=1 blkDevPdlTimeoutMillis=60000"
changed_when: powerflex_sdc_register_set_sdc_mdm.rc == 0

Expand Down
Loading