Hello

I want to reboot my server and continue with other instructions. My code is:

- name: reboot
  command: reboot
  notify:
  - wait until rebooted

- name: wait until rebooted
  local_action: wait_for host={{ansible_fqdn}} port=22 state=started delay=
30
  sudo: false

After execution I get an error:


failed: [xxx] => {"elapsed": 300, "failed": true, "item": ""}
> msg: Timeout when waiting for myhostname:22
>
> FATAL: all hosts have already failed -- aborting
>

How can I fix it?

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/f51b48b0-492e-42eb-afb5-6ae4507a68b9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to