This sample playbook will submit the Expand Volume Capacity (02.10.00) service.
- Configure ansible.cfg and environment variables.
- Confirm whether the service to run exists in advance. If it does not exist, create it.
- Deploy the linkage module.
- Encrypt auth_info.yml with the ansible-vault command.
- Enable SSL settings between Ops Center Automator and Ansible and between Common Services and Ansible
- Edit the values to match the running environment. The files where the variables are set are as follows.
File path To set roles/expandVolumeCapacity/vars/main.yml Service settings
Task settings
Service parameters
connection_info_var/automation_software_server1 Ops Center Automator server and Common Services server information connection_info_var_/auth_info.yml Authenication information (for Vault) - Run the following command:
ansible-playbook ExpandVolumeCapacity_Playbook.yml --extra-vars "@connection_info_var/automation_software_server1.yml" --extra-vars "@connection_info_var/auth_info.yml" --ask-vault-pass