Adjust the update-packages playbook for the infrastructure-tags-stg repo

This commit is contained in:
Pierre-Yves Chibon 2017-09-05 11:59:08 +02:00
parent d2fa8a904b
commit d434e8d6c9

View file

@ -20,7 +20,7 @@
when: not testing and ansible_distribution_major_version|int < 22
- name: yum update {{ package }} from testing repo
yum: name="{{ package }}" state=latest enablerepo=infrastructure-testing update_cache=yes
yum: name="{{ package }}" state=latest enablerepo=infrastructure-tags-stg update_cache=yes
when: testing and ansible_distribution_major_version|int < 22
- name: dnf clean all (since we can't do it when updating)
@ -32,10 +32,10 @@
when: not testing and ansible_distribution_major_version|int > 21
- name: dnf clean all (since we can't do it when updating)
command: dnf clean all --enablerepo=infrastructure-testing
command: dnf clean all --enablerepo=infrastructure-tags-stg
when: testing and ansible_distribution_major_version|int > 21
- name: dnf update {{ package }} from testing repo
dnf: name="{{ package }}" state=latest enablerepo=infrastructure-testing
dnf: name="{{ package }}" state=latest enablerepo=infrastructure-tags-stg
when: testing and ansible_distribution_major_version|int > 21