host_reboot: move to same pattern as vhost_reboot

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
This commit is contained in:
Kevin Fenzi 2025-01-29 09:21:46 -08:00
parent 31bb763172
commit 54bfe96cdc

View file

@ -14,13 +14,7 @@
ignore_errors: true ignore_errors: true
- name: Reboot the host - name: Reboot the host
ansible.builtin.command: /sbin/shutdown -r 1 reboot: reboot_timeout=1800
- 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
- name: Tell nagios to unshush - name: Tell nagios to unshush
nagios: action=unsilence service=host host={{ inventory_hostname_short }}{{ env_suffix }} nagios: action=unsilence service=host host={{ inventory_hostname_short }}{{ env_suffix }}