zuul-jobs/roles/ensure-podman/tasks/Ubuntu-18.04.yaml
James E. Blair f18bea4e09 ensure-podman: Remove kubic from Ubuntu 18.04 and drop 20.04
The kubic repo no longer has packages for Ubuntu 18.04.  Use the
PPA instead.

Kubic also dropped packages for 20.04, but the PPA is not available.
Since we have no source for podman packages on 20.04, drop support.

Change-Id: I0fa441cd2fe4ec35c1bbe6630324965e223d7512
2022-05-24 10:46:38 -07:00

24 lines
563 B
YAML

- name: Add project atomic PPA repository
include_role:
name: ensure-package-repositories
vars:
repositories_list:
- repo: ppa:projectatomic/ppa
- name: Install podman
package:
name:
- podman
- uidmap
- slirp4netns
state: present
become: yes
# NOTE(pabelanger): Remove default registries.conf file, so we can manage it
# ourself. It could have v1 syntax, which doesn't work with v2.
- name: Remove /etc/containers/registries.conf
become: true
file:
state: absent
path: /etc/containers/registries.conf