- name: restart machine shell: sleep 2 && shutdown -r now "Ansible updates triggered" async: 1 poll: 0 ignore_errors: true - name: waiting for server to come back local_action: wait_for host={{ inventory_hostname }} port=22 delay=30 timeout=300
No comments:
Post a Comment