[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:
Sam Doran 2019-07-30 15:11:35 -04:00 committed by Toshio Kuratomi
parent ac1e647e55
commit ce59df01e3
4 changed files with 6 additions and 2 deletions

View file

@ -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:

View file

@ -0,0 +1 @@
podman_package: podman-1.3.*

View file

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

View file

@ -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