Skip to content
Snippets Groups Projects
Commit 8486c3c0 authored by Chris Hines's avatar Chris Hines
Browse files

change local_action to wait_for_connection

parent 17e302cb
No related branches found
No related tags found
1 merge request!147Better reboot
......@@ -58,11 +58,11 @@
async: 2
poll: 1
ignore_errors: true
sudo: true
become: true
become_user: root
when: reboot_now
- name: waiting for server to come back
local_action: wait_for host={{ ansible_host }} state=started port=22 delay=30 timeout=600 search_regex=OpenSSH
sudo: false
wait_for_connection: sleep=60 timeout=600 delay=60
when: reboot_now
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment