-
Notifications
You must be signed in to change notification settings - Fork 83
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
zhmc: Restructured sample playbooks #222
base: main
Are you sure you want to change the base?
Conversation
Details: * Restructured the sample playbooks as follows: - Renamed them so that the resource they work on appears first in the file name, and then the action. This orders them in the directory listing in a more meaningful way. - Changed the variable that selects the inventory entry from 'host' to 'hmc'. - Removed the 'cpc_name' variable from the vault file, since it is different for any HMC anyway, and it is easier to understand if it does not appear defined by magic. The CPC is now defined in each playbook with the 'cpc' variable and thus can be overridden from the command line with '-e cpc=mycpc'. - Simplified the variable names that specify resource names to remove '_name' for easier use with the '-e' option. - Added 'gather_facts: no' to the playbooks. - Added a zhmc log file 'zhmc.log' to the playbooks. * Simplifications in the inventory and vault files: - Added the 'verify' variable to the example vault file. - Removed 'ansible_connection: local' from the example inventory file since it is not needed, when the tasks specify 'delegate_to: local'. - Improved the documentation in the example inventory and vault files. * Major improvements in the z_systems_administration/zhmc/README.md file that documents how to use the sample playbooks. Signed-off-by: Andreas Maier <[email protected]>
bde6ff7
to
f3cdab3
Compare
hosts: | ||
myhmc13: # must match the key name in the vault file | ||
|
||
myhmc13: # An HMC nickname (must match the nickname in the vault file) | ||
ansible_host: 10.11.12.13 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
does this ip address belong to IBM? if yes, maybe just set to something generic like 'your_hmc_ip_address'
hosts: | ||
|
||
myhmc13: # An HMC nickname (must match the nickname in the vault file) | ||
ansible_host: 10.11.12.13 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
use generic hostname instead of a specific ip address?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please review comments before merging.
For details, see the commit message.
Ready for review and merge.