main.yml 288 B

123456789
  1. ---
  2. - name: Neustarten
  3. shell: sleep 2 && shutdown -r now "Ansible updates triggered"
  4. async: 1
  5. poll: 0
  6. ignore_errors: true
  7. - name: Neustart abwarten
  8. local_action: wait_for port={{ ansible_ssh_port }} host={{ ansible_host }} state=started delay=60 timeout=900 connect_timeout=15