diff --git a/playbooks/manual/update_all-stg.yml b/playbooks/manual/update_all-stg.yml index c24ab9f608..e824036348 100644 --- a/playbooks/manual/update_all-stg.yml +++ b/playbooks/manual/update_all-stg.yml @@ -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: diff --git a/playbooks/manual/update_all.yml b/playbooks/manual/update_all.yml index 9c7c9b5b0a..e770983725 100644 --- a/playbooks/manual/update_all.yml +++ b/playbooks/manual/update_all.yml @@ -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