host_reboot: move to same pattern as vhost_reboot
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
This commit is contained in:
parent
31bb763172
commit
54bfe96cdc
1 changed files with 1 additions and 7 deletions
|
@ -14,13 +14,7 @@
|
|||
ignore_errors: true
|
||||
|
||||
- name: Reboot the host
|
||||
ansible.builtin.command: /sbin/shutdown -r 1
|
||||
|
||||
- name: Wait for host to come back - up to 15 minutes
|
||||
local_action: wait_for host={{ target }} port=22 delay=120 timeout=900 search_regex=OpenSSH
|
||||
|
||||
# - name: Sync time
|
||||
# ansible.builtin.command: ntpdate -u 1.rhel.pool.ntp.org
|
||||
reboot: reboot_timeout=1800
|
||||
|
||||
- name: Tell nagios to unshush
|
||||
nagios: action=unsilence service=host host={{ inventory_hostname_short }}{{ env_suffix }}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue