fixing more package install dnf/yum logic

This commit is contained in:
Tim Flink 2015-11-26 01:34:16 +00:00
parent bf03de72d0
commit 5d1b09d139
2 changed files with 5 additions and 5 deletions

View file

@ -25,17 +25,17 @@
- name: dnf clean all (since we can't do it when updating)
command: dnf clean all
when: not testing and ansible_distribution_major_version|int > 22
when: not testing and ansible_distribution_major_version|int > 21
- name: dnf update {{ package }} from main repo
dnf: name="{{ package }}" state=latest
when: not testing and ansible_distribution_major_version|int > 22
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
when: testing and ansible_distribution_major_version|int > 22
when: testing and ansible_distribution_major_version|int > 21
- name: dnf update {{ package }} from testing repo
dnf: name="{{ package }}" state=latest enablerepo=infrastructure-testing
when: testing and ansible_distribution_major_version|int > 22
when: testing and ansible_distribution_major_version|int > 21