1
0
Fork 0
mirror of https://github.com/containers/ansible-podman-collections.git synced 2026-02-04 07:11:49 +00:00

Run jobs with new Podman repos

Signed-off-by: Sagi Shnaidman <sshnaidm@redhat.com>
This commit is contained in:
Sagi Shnaidman 2025-11-25 19:14:38 +02:00 committed by Sergey
parent d43a5a4a48
commit fbd98250f5
40 changed files with 660 additions and 675 deletions

View file

@ -3,8 +3,8 @@
become: true
shell: |
. /etc/os-release
echo "deb https://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/unstable/xUbuntu_${VERSION_ID}/ /" > /etc/apt/sources.list.d/devel:kubic:libcontainers:stable.list
curl -L https://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/unstable/xUbuntu_${VERSION_ID}/Release.key | apt-key add -
echo "deb https://download.opensuse.org/repositories/home:/alvistack/xUbuntu_${VERSION_ID}/ /" > /etc/apt/sources.list.d/home:alvistack.list
curl -L https://download.opensuse.org/repositories/home:/alvistack/xUbuntu_${VERSION_ID}/Release.key | apt-key add -
apt-get update
when:
- ansible_distribution|lower == "ubuntu"
@ -14,8 +14,8 @@
become: true
shell: |
. /etc/os-release
echo "deb https://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable/xUbuntu_${VERSION_ID}/ /" > /etc/apt/sources.list.d/devel:kubic:libcontainers:stable.list
curl -L https://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable/xUbuntu_${VERSION_ID}/Release.key | apt-key add -
echo "deb https://download.opensuse.org/repositories/home:/alvistack/xUbuntu_${VERSION_ID}/ /" > /etc/apt/sources.list.d/home:alvistack.list
curl -L https://download.opensuse.org/repositories/home:/alvistack/xUbuntu_${VERSION_ID}/Release.key | apt-key add -
apt-get update
when:
- ansible_distribution|lower == "ubuntu"

View file

@ -52,50 +52,42 @@
- name: Install repositories if need
include_tasks: install_repos.yml
- when:
- distro == 'Ubuntu24'
block:
- name: Remove existing golang-github-containers-common
package:
name:
- podman
- buildah
- skopeo
- crun
state: absent
- name: Remove existing golang-github-containers-common
package:
name: golang-github-containers-common
state: absent
- name: Run autoremove
command: apt-get autoremove -y
- name: Install podman
package:
name:
- podman
- buildah
- skopeo
- git
- vim
- dnsmasq
- slirp4netns
- netavark
- uidmap
- passt
state: latest
- name: Discover slirp4netns version
shell: slirp4netns -v | grep version | awk {'print $3'}
register: version
when:
- ansible_distribution == 'Ubuntu'
- ansible_distribution_major_version is version('22', '>=')
- name: Install newest slirp4netns version
shell: >-
curl -o /tmp/slirp4netns --fail -L https://github.com/rootless-containers/slirp4netns/releases/download/v1.2.0/slirp4netns-$(uname -m);
chmod +x /tmp/slirp4netns;
mv /tmp/slirp4netns /usr/bin/slirp4netns
when:
- ansible_distribution == 'Ubuntu'
- 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 }}"