diff --git a/playbooks/manual/update-packages.yml b/playbooks/manual/update-packages.yml index ac39602d91..b4d68cabca 100644 --- a/playbooks/manual/update-packages.yml +++ b/playbooks/manual/update-packages.yml @@ -24,10 +24,10 @@ when: testing and ansible_distribution_major_version|int < 22 - name: yum update {{ package }} from main repo - dnf: name="{{ package }}" state=latest update_cache=yes + dnf: name="{{ package }}" state=latest when: not testing and ansible_distribution_major_version|int > 22 - name: yum update {{ package }} from testing repo - dnf: name="{{ package }}" state=latest enablerepo=infrastructure-testing update_cache=yes + dnf: name="{{ package }}" state=latest enablerepo=infrastructure-testing when: testing and ansible_distribution_major_version|int > 22