include repo for podman
This commit is contained in:
parent
f9ab303b8e
commit
07a0c97b5e
1 changed files with 16 additions and 0 deletions
|
@ -27,3 +27,19 @@
|
|||
cache_valid_time: 3600
|
||||
become: true
|
||||
when: docker_command == 'docker'
|
||||
|
||||
- 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 == '20.04'
|
||||
- ansible_distribution_major_version < 20
|
||||
|
||||
- name: Add Kubic (Podman) repository
|
||||
apt_repository:
|
||||
repo: "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/devel_kubic_libcontainers_unstable.gpg] https://download.opensuse.org/repositories/devel:kubic:libcontainers:unstable/xUbuntu_{{ ansible_distribution_version }}/ /"
|
||||
filename: kubic-podman
|
||||
when:
|
||||
- docker_command == 'podman'
|
||||
- ansible_distribution_version == '20.04'
|
||||
- ansible_distribution_major_version < 20
|
||||
|
|
Loading…
Reference in a new issue