1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

yum_versionlock: disable fedora34 integration test (#2536) (#2538)

* Disable yum_versionlock integration test on Fedora 34

* Remove --assumeyes and add a comment regarding this

* Update update task name

(cherry picked from commit da7e4e1dc2)

Co-authored-by: Amin Vakil <info@aminvakil.com>
This commit is contained in:
patchback[bot] 2021-05-17 10:36:36 +02:00 committed by GitHub
parent b699aaff7b
commit 42f28048a8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -23,8 +23,9 @@
state: present state: present
register: lock_all_packages register: lock_all_packages
- name: Update all packages # This should fail when it needs user interaction and missing -y is on purpose.
command: yum update --assumeyes --setopt=obsoletes=0 - name: Update all packages (not really)
command: yum update --setopt=obsoletes=0
register: update_all_locked_packages register: update_all_locked_packages
changed_when: changed_when:
- '"No packages marked for update" not in update_all_locked_packages.stdout' - '"No packages marked for update" not in update_all_locked_packages.stdout'
@ -59,4 +60,4 @@
state: absent state: absent
when: yum_versionlock_install is changed when: yum_versionlock_install is changed
when: (ansible_distribution in ['CentOS', 'RedHat'] and ansible_distribution_major_version is version('7', '>=')) or when: (ansible_distribution in ['CentOS', 'RedHat'] and ansible_distribution_major_version is version('7', '>=')) or
(ansible_distribution == 'Fedora') (ansible_distribution == 'Fedora' and ansible_distribution_major_version is version('33', '<='))