diff --git a/roles/powerflex_sdc/defaults/main.yml b/roles/powerflex_sdc/defaults/main.yml index 5801c0c..fc23921 100644 --- a/roles/powerflex_sdc/defaults/main.yml +++ b/roles/powerflex_sdc/defaults/main.yml @@ -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: diff --git a/roles/powerflex_sdc/tasks/register_esxi_sdc.yml b/roles/powerflex_sdc/tasks/register_esxi_sdc.yml index 0b06fc8..52a8004 100644 --- a/roles/powerflex_sdc/tasks/register_esxi_sdc.yml +++ b/roles/powerflex_sdc/tasks/register_esxi_sdc.yml @@ -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