zuul-jobs/roles/ensure-podman/tasks/Ubuntu-22.04.yaml
James E. Blair 97ae13d7a2 Pin podman on jammy
The jammy-updates/universe repo recently added
podman 3.4.4+ds1-1ubuntu1.22.04.1 which produces the error:

  Error validating CNI config file
  /home/zuul/.config/cni/net.d/zuul-tutorial_zuul.conflist:
  [plugin bridge does not support config version \"1.0.0\"
  plugin portmap does not support config version \"1.0.0\"
  plugin firewall does not support config version \"1.0.0\"
  plugin tuning does not support config version \"1.0.0\"]

Pin to 3.4.4+ds1-1ubuntu1 until this is fixed.

Change-Id: I944c6cbb8129abfc8e3383e0f08920520345f5be
2023-06-20 18:49:14 -07:00

24 lines
634 B
YAML

- name: Install podman
package:
name:
- 'podman=3.4.4+ds1-1ubuntu1'
- uidmap
- slirp4netns
- fuse-overlayfs
- containernetworking-plugins
# This enables container network dns resolution:
- golang-github-containernetworking-plugin-dnsname
state: present
become: yes
- name: Create containers config dir
file:
path: '{{ ansible_user_dir }}/.config/containers'
state: directory
- name: Force cgroup manager to cgroupfs for Ubuntu
copy:
content: |
[engine]
cgroup_manager = "cgroupfs"
dest: '{{ ansible_user_dir }}/.config/containers/containers.conf'