[stable-2.8] Fix podman_image integration tests (#59805)
Pin podman package at a specific version
(cherry picked from commit 691976c3d0
)
Co-authored-by: Sam Doran <sdoran@redhat.com>
This commit is contained in:
parent
ac1e647e55
commit
ce59df01e3
4 changed files with 6 additions and 2 deletions
|
@ -1,10 +1,13 @@
|
|||
- block:
|
||||
- name: Include distribution specific variables
|
||||
include_vars: "{{ ansible_facts.distribution }}-{{ ansible_facts.distribution_major_version }}.yml"
|
||||
|
||||
- name: Enable extras repo
|
||||
command: "{{ repo_command[ansible_facts.distribution ~ ansible_facts.distribution_major_version] | default('echo') }}"
|
||||
|
||||
- name: Install podman
|
||||
yum:
|
||||
name: podman
|
||||
name: "{{ podman_package }}"
|
||||
state: present
|
||||
when: ansible_facts.pkg_mgr in ['yum', 'dnf']
|
||||
when:
|
||||
|
|
1
test/integration/targets/setup_podman/vars/RedHat-7.yml
Normal file
1
test/integration/targets/setup_podman/vars/RedHat-7.yml
Normal file
|
@ -0,0 +1 @@
|
|||
podman_package: podman-1.3.*
|
1
test/integration/targets/setup_podman/vars/RedHat-8.yml
Normal file
1
test/integration/targets/setup_podman/vars/RedHat-8.yml
Normal file
|
@ -0,0 +1 @@
|
|||
podman_package: '@container-tools:1.0'
|
|
@ -1,3 +1,2 @@
|
|||
repo_command:
|
||||
RedHat7: yum-config-manager --enable rhui-REGION-rhel-server-extras
|
||||
# RedHat8: dnf config-manager --enablerepo rhui-REGION-rhel-server-extras
|
||||
|
|
Loading…
Reference in a new issue