[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>
pull/59839/head
Sam Doran 6 years ago committed by Toshio Kuratomi
parent ac1e647e55
commit ce59df01e3

@ -1,10 +1,13 @@
- block: - block:
- name: Include distribution specific variables
include_vars: "{{ ansible_facts.distribution }}-{{ ansible_facts.distribution_major_version }}.yml"
- name: Enable extras repo - name: Enable extras repo
command: "{{ repo_command[ansible_facts.distribution ~ ansible_facts.distribution_major_version] | default('echo') }}" command: "{{ repo_command[ansible_facts.distribution ~ ansible_facts.distribution_major_version] | default('echo') }}"
- name: Install podman - name: Install podman
yum: yum:
name: podman name: "{{ podman_package }}"
state: present state: present
when: ansible_facts.pkg_mgr in ['yum', 'dnf'] when: ansible_facts.pkg_mgr in ['yum', 'dnf']
when: when:

@ -0,0 +1 @@
podman_package: '@container-tools:1.0'

@ -1,3 +1,2 @@
repo_command: repo_command:
RedHat7: yum-config-manager --enable rhui-REGION-rhel-server-extras RedHat7: yum-config-manager --enable rhui-REGION-rhel-server-extras
# RedHat8: dnf config-manager --enablerepo rhui-REGION-rhel-server-extras

Loading…
Cancel
Save