fix update chage
This commit is contained in:
parent
ae57bce634
commit
535fa8466a
1 changed files with 5 additions and 2 deletions
|
@ -15,11 +15,13 @@
|
|||
when: docker_command == 'docker'
|
||||
|
||||
- name: Install Docker repository
|
||||
apt_repository: repo={{ item.repo }} state=present
|
||||
apt_repository:
|
||||
repo: "{{ item.repo }}"
|
||||
state: present
|
||||
update_cache: true
|
||||
become: true
|
||||
with_items:
|
||||
- { repo: "deb [arch=amd64] https://download.docker.com/linux/ubuntu {{ ansible_distribution_release }} stable" }
|
||||
update_cache: true
|
||||
when: docker_command == 'docker'
|
||||
|
||||
- name: Ensure keyring folder for apt exists
|
||||
|
@ -36,6 +38,7 @@
|
|||
- 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 }}/ /"
|
||||
state: present
|
||||
filename: kubic-podman
|
||||
when:
|
||||
- docker_command == 'podman'
|
||||
|
|
Loading…
Reference in a new issue