[ansible-devel] Need help to reboot the host

2022-02-14 Thread jayanth reddy
Hi Team, I have multiple servers in one region and seperated with zone a &b I need to reboot one system in zone a and once it come back i need to reboot rest of the systeme in zone a. Can you help with condition to write a ansible play for this. Thanks in advance Best regards, Jayanth -- You r

Re: [ansible-devel] Need help to reboot the host

2022-02-14 Thread Magnus Lubeck
You can simply do it by having multiple plays in one playbook. Many ways to skin this cat. ``` --- - name: reboot server 1 hosts: server1 tasks: - reboot - name: reboot the rest hosts: zoneA, !server1 tasks: - reboot ``` Sent from my iPhone > On 15 Feb 2022, at 07:13, jay