WIP: fixing things, removed nagois from update_all.yml

Signed-off-by: Vít Smolík <me@smoliicek.cz>
This commit is contained in:
Vít Smolík
2025-08-07 06:30:38 +02:00
committed by kevin
parent 02e38e2349
commit 25f82eecf8

View File

@@ -1,21 +1,11 @@
# Copr and openqa system have their updates scheduled separatley, skipping them here.
# Ocp and worker systems are excluded, openshift manages it's own updates.
# For updating all staging systems, please use manual/update_all-stg.yml
---
- name: Set downtime
hosts: all:!copr*:!openqa*:!ocp*:!worker*
gather_facts: false
user: root
serial: 1
tasks:
- name: Schedule regular host downtime
nagios: action=downtime minutes=30 service=host host={{ inventory_hostname_short }}{{ env_suffix }}
delegate_to: noc01.rdu3.fedoraproject.org
ignore_errors: true
failed_when: no
when: nonagios is not defined or not "true" in nonagios
- name: Update all systems
hosts: all:!copr*:!openqa*:!ocp*:!worker*
hosts: all:!copr*:!openqa*:!ocp*:!worker*:!staging*
user: root
tasks:
@@ -29,7 +19,8 @@
poll: 30
when: package_excludes is not defined
- debug:
- name: Chech for package_excludes
ansible.builtin.debug:
msg:
- '!!!!!!!!!!!!!!!!!!! host {{ inventory_hostname }} has EXCLUDES OF {{ package_excludes }} !!!!!!!!!!!!!'
- '!!!!!!!!!!!!!!!!!!! DANGER DANGER DANGER ^ CHECK THAT EXCLUDES ARE STILL NEEDED ^ !!!!!!!!!!!!!!!!!!!!'
@@ -48,7 +39,7 @@
- name: Run rkhunter if installed
hosts: all:!copr*:!openqa*:!ocp*:!worker*
hosts: all:!copr*:!openqa*:!ocp*:!worker*:!staging*
user: root
tasks: