mirror of
https://github.com/containers/ansible-podman-collections.git
synced 2026-02-04 07:11:49 +00:00
Fix broken conmon version in CI install (#695)
Podman issue: https://github.com/containers/podman/issues/21024 Conmon issue: https://github.com/containers/conmon/issues/475 Signed-off-by: Sagi Shnaidman <sshnaidm@redhat.com>
This commit is contained in:
parent
45893f4a7b
commit
5ee4dd1eda
2 changed files with 18 additions and 0 deletions
2
.github/workflows/podman_pod.yml
vendored
2
.github/workflows/podman_pod.yml
vendored
|
|
@ -8,6 +8,7 @@ on:
|
|||
- 'ci/run_containers_tests.sh'
|
||||
- 'ci/playbooks/containers/podman_pod.yml'
|
||||
- 'plugins/module_utils/podman/podman_pod_lib.py'
|
||||
- 'plugins/module_utils/podman/common.py'
|
||||
- 'plugins/modules/podman_pod.py'
|
||||
- 'plugins/modules/podman_pod_info.py'
|
||||
- 'tests/integration/targets/podman_pod/**'
|
||||
|
|
@ -20,6 +21,7 @@ on:
|
|||
- 'ci/run_containers_tests.sh'
|
||||
- 'ci/playbooks/containers/podman_pod.yml'
|
||||
- 'plugins/module_utils/podman/podman_pod_lib.py'
|
||||
- 'plugins/module_utils/podman/common.py'
|
||||
- 'plugins/modules/podman_pod.py'
|
||||
- 'plugins/modules/podman_pod_info.py'
|
||||
- 'tests/integration/targets/podman_pod/**'
|
||||
|
|
|
|||
|
|
@ -82,6 +82,22 @@
|
|||
- ansible_distribution_major_version is version('22', '>=')
|
||||
- version.stdout is version('1.1.0', '<')
|
||||
|
||||
- name: Discover conmon version
|
||||
shell: conmon --version | grep version | awk {'print $3'}
|
||||
register: conmon_version
|
||||
when:
|
||||
- ansible_distribution == 'Ubuntu'
|
||||
- ansible_distribution_major_version is version('22', '>=')
|
||||
|
||||
- name: Downgrade broken conmon
|
||||
shell: >-
|
||||
wget https://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable/xUbuntu_22.04/amd64/conmon_2.1.2~0_amd64.deb -O /tmp/conmon_2.1.2.deb;
|
||||
apt install -y /tmp/conmon_2.1.2.deb
|
||||
when:
|
||||
- ansible_distribution == 'Ubuntu'
|
||||
- ansible_distribution_major_version is version('22', '>=')
|
||||
- conmon_version.stdout is version('2.1.9', '==')
|
||||
|
||||
- name: Remove virtualenv if need
|
||||
file:
|
||||
path: "{{ ansible_venv }}"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue