Files
fedora-infra_ansible/playbooks/host_reboot.yml
Nils Philippsen 6c85fda0c9 Mass remove/replace iad2 -> rdu3, 10.3. -> 10.16.
Signed-off-by: Nils Philippsen <nils@redhat.com>
2025-07-03 20:05:02 +02:00

23 lines
611 B
YAML

# requires --extra-vars="target=hostspec"
---
- name: Reboot hosts
hosts: "{{ target }}"
gather_facts: false
user: root
serial: 1
tasks:
- name: Tell nagios to shush
nagios: action=downtime minutes=60 service=host host={{ inventory_hostname_short }}{{ env_suffix }}
delegate_to: noc01.rdu3.fedoraproject.org
ignore_errors: true
- name: Reboot the host
reboot: reboot_timeout=1800
- name: Tell nagios to unshush
nagios: action=unsilence service=host host={{ inventory_hostname_short }}{{ env_suffix }}
delegate_to: noc01.rdu3.fedoraproject.org
ignore_errors: true