28 lines
997 B
YAML
28 lines
997 B
YAML
|
---
|
||
|
- name: Ensure keyring folder for apt exists
|
||
|
file:
|
||
|
path: /etc/apt/keyrings
|
||
|
state: directory
|
||
|
|
||
|
- name: Get Kubic (Podman) repo key
|
||
|
shell: "curl -fsSL https://download.opensuse.org/repositories/devel:kubic:libcontainers:stable/xUbuntu_{{ ansible_distribution_version }}/Release.key | gpg --dearmor | tee /etc/apt/keyrings/devel_kubic_libcontainers_unstable.gpg > /dev/null"
|
||
|
when:
|
||
|
- docker_command == 'podman'
|
||
|
- ansible_distribution_version|int < 20.10
|
||
|
|
||
|
- name: Add Kubic (Podman) repository
|
||
|
apt_repository:
|
||
|
repo: "deb [signed-by=/etc/apt/keyrings/devel_kubic_libcontainers_unstable.gpg] https://download.opensuse.org/repositories/devel:kubic:libcontainers:stable/xUbuntu_{{ ansible_distribution_version }}/ /"
|
||
|
filename: kubic-podman
|
||
|
update_cache: true
|
||
|
when:
|
||
|
- docker_command == 'podman'
|
||
|
- ansible_distribution_version|int < 20.10
|
||
|
|
||
|
- name: Install podman packages
|
||
|
package:
|
||
|
name:
|
||
|
- podman
|
||
|
- skopeo
|
||
|
- containernetworking-plugins
|