mirror of
https://pagure.io/fedora-infra/ansible.git
synced 2026-05-12 19:06:39 +08:00
host_reboot: move to same pattern as vhost_reboot
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
This commit is contained in:
@@ -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 }}
|
||||
|
||||
Reference in New Issue
Block a user