Skip to content

Commit

Permalink
Added task to auto generate Esxi id (#58)
Browse files Browse the repository at this point in the history
  • Loading branch information
meenakshidembi691 authored May 24, 2024
1 parent f36fa54 commit 4b8055c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
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

0 comments on commit 4b8055c

Please sign in to comment.