mirror of
https://pagure.io/fedora-infra/ansible.git
synced 2026-03-20 03:57:02 +08:00
Remove from DNS/nagios for updates as well
Signed-off-by: Ricky Elrod <codeblock@fedoraproject.org>
This commit is contained in:
@@ -17,12 +17,27 @@
|
||||
local_action: add_host hostname={{ item }} groupname=myvms_new
|
||||
with_items: vmlist.list_vms
|
||||
|
||||
# Call out to another playbook. Disable any proxies that may live here
|
||||
- include: update-proxy-dns.yml status=disable proxies=myvms_new:&proxies
|
||||
|
||||
- name: update the system
|
||||
hosts: "{{ target }}:myvms_new"
|
||||
gather_facts: False
|
||||
user: root
|
||||
|
||||
tasks:
|
||||
- name: schedule regular host downtime
|
||||
nagios: action=downtime minutes=30 service=host host={{ inventory_hostname_short }}
|
||||
delegate_to: noc01.phx2.fedoraproject.org
|
||||
ignore_errors: true
|
||||
when: inventory_hostname.find('.stg.') == -1
|
||||
|
||||
- name: schedule stg host downtime
|
||||
nagios: action=downtime minutes=30 service=host host={{ inventory_hostname_short }}.stg
|
||||
delegate_to: noc01.phx2.fedoraproject.org
|
||||
ignore_errors: true
|
||||
when: inventory_hostname.find('.stg.') != -1
|
||||
|
||||
- name: expire-caches
|
||||
command: yum clean expire-cache
|
||||
|
||||
|
||||
Reference in New Issue
Block a user