fix (most) lint problems on update_all and update_all-stg (+ comments)

Signed-off-by: Vít Smolík <me@smoliicek.cz>
This commit is contained in:
Vít Smolík
2025-08-07 17:47:41 +02:00
committed by kevin
parent 25f82eecf8
commit cdd3b93a04
2 changed files with 11 additions and 22 deletions

View File

@@ -1,25 +1,14 @@
# 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: staging:!copr*:!openqa*:!ocp*:!worker*
gather_facts: false
- name: Update all staging systems
hosts: staging*:!copr*:!openqa*:!ocp*:!worker*
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 staging systems
hosts: staging:!copr*:!openqa*:!ocp*:!worker*
user: root
tasks:
- name: Apply updates
ansible.builtin.package:
state: latest
@@ -29,7 +18,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 +38,7 @@
- name: Run rkhunter if installed
hosts: staging:!copr*:!openqa*:!ocp*:!worker*
hosts: staging*:!copr*:!openqa*:!ocp*:!worker*
user: root
tasks:

View File

@@ -7,9 +7,8 @@
- name: Update all systems
hosts: all:!copr*:!openqa*:!ocp*:!worker*:!staging*
user: root
tasks:
- name: Apply updates
ansible.builtin.package:
state: latest