Hi,
I would like to start and stop SAP system via Ansible playbook. I have a simple playbook, with script module and bash script. I use sapcontrol in bash script and I give SAP instance number to this script. I have a problem with many SAP instance number. I use external vars file with construct like this:
hosts:
- name: hostname_1
sap_instance: - instance_nr_1
- instance_nr_2
- name: hostname_2
sap_instance: - instance_nr_3
- instance_nr_4
I don’t know how to use it to make it work properly. Can someone tell me how to provide such a complex variable?
Sincerly,
Michał