summaryrefslogtreecommitdiffstats
path: root/test/integration/targets/dnf/tasks
diff options
context:
space:
mode:
authorMatt Clay <matt@mystile.com>2025-01-07 22:46:48 +0100
committerGitHub <noreply@github.com>2025-01-07 22:46:48 +0100
commit648dcd3a6ab036b5e34c9f1cd89c0558a6be5251 (patch)
treecf24ce74924dd19e7bebc461c0aba657a334a5eb /test/integration/targets/dnf/tasks
parentAdd Keycloak service account auth capability to ansible-galaxy (#83145) (diff)
downloadansible-648dcd3a6ab036b5e34c9f1cd89c0558a6be5251.tar.xz
ansible-648dcd3a6ab036b5e34c9f1cd89c0558a6be5251.zip
ansible-test - Replace Fedora 40 with 41 (#84281)
* ansible-test - Replace Fedora 40 with 41 Also update other distro containers to remove unnecessary packages: * apache2 * subversion * ruby * Fix subversion test on Ubuntu Also remove obsolete vars files from subversion test. * Skip dnf test on Fedora 41+ The dnf5 test is all that is needed. * Support dnf5 for the package test * Extend unix-chkpwd work-around for Fedora
Diffstat (limited to 'test/integration/targets/dnf/tasks')
-rw-r--r--test/integration/targets/dnf/tasks/main.yml82
1 files changed, 42 insertions, 40 deletions
diff --git a/test/integration/targets/dnf/tasks/main.yml b/test/integration/targets/dnf/tasks/main.yml
index 633a238d76..e0a84e1808 100644
--- a/test/integration/targets/dnf/tasks/main.yml
+++ b/test/integration/targets/dnf/tasks/main.yml
@@ -16,47 +16,49 @@
# You should have received a copy of the GNU General Public License
# along with Ansible. If not, see <http://www.gnu.org/licenses/>.
-- block:
- - include_tasks: dnf.yml
- - include_tasks: skip_broken_and_nobest.yml
- - block:
- - include_tasks: filters.yml
- - include_tasks: filters_check_mode.yml
- tags:
- - filters
- - include_tasks: gpg.yml
- - include_tasks: repo.yml
- - include_tasks: dnf_group_remove.yml
- - include_tasks: dnfinstallroot.yml
- - include_tasks: logging.yml
- - include_tasks: cacheonly.yml
- - include_tasks: multilib.yml
- when: ansible_distribution in ['Fedora', 'RedHat']
+- when: not (ansible_distribution == 'Fedora' and ansible_distribution_version is version(41, '>=') and not (dnf5 | default(False)))
+ block:
+ - block:
+ - include_tasks: dnf.yml
+ - include_tasks: skip_broken_and_nobest.yml
+ - block:
+ - include_tasks: filters.yml
+ - include_tasks: filters_check_mode.yml
+ tags:
+ - filters
+ - include_tasks: gpg.yml
+ - include_tasks: repo.yml
+ - include_tasks: dnf_group_remove.yml
+ - include_tasks: dnfinstallroot.yml
+ - include_tasks: logging.yml
+ - include_tasks: cacheonly.yml
+ - include_tasks: multilib.yml
+ when: ansible_distribution in ['Fedora', 'RedHat']
-# Attempting to install a different RHEL release in a tmpdir doesn't work (rhel8 beta)
-- include_tasks: dnfreleasever.yml
- when: ansible_distribution == 'Fedora'
+ # Attempting to install a different RHEL release in a tmpdir doesn't work (rhel8 beta)
+ - include_tasks: dnfreleasever.yml
+ when: ansible_distribution == 'Fedora'
-- when:
- - ansible_distribution == 'RedHat'
- - not dnf5|default(false)
- block:
- # FUTURE - look at including AppStream support in our local repo
- - name: list modules
- command: dnf module list -q
- register: module_list
+ - when:
+ - ansible_distribution == 'RedHat'
+ - not dnf5|default(false)
+ block:
+ # FUTURE - look at including AppStream support in our local repo
+ - name: list modules
+ command: dnf module list -q
+ register: module_list
- # A module that only has a single version
- - name: Find a module that meets our testing needs
- set_fact:
- astream_name: '@{{ module.name }}:{{ module.version }}/{{ module.profile }}'
- astream_name_no_stream: '@{{ module.name }}/{{ module.profile }}'
- vars:
- module: '{{ module_list.stdout|get_first_single_version_module }}'
+ # A module that only has a single version
+ - name: Find a module that meets our testing needs
+ set_fact:
+ astream_name: '@{{ module.name }}:{{ module.version }}/{{ module.profile }}'
+ astream_name_no_stream: '@{{ module.name }}/{{ module.profile }}'
+ vars:
+ module: '{{ module_list.stdout|get_first_single_version_module }}'
- - include_tasks: modularity.yml
- tags:
- - dnf_modularity
- rescue:
- # Just in case something crazy happens when listing or parsing modules
- - meta: noop
+ - include_tasks: modularity.yml
+ tags:
+ - dnf_modularity
+ rescue:
+ # Just in case something crazy happens when listing or parsing modules
+ - meta: noop