docker
This commit is contained in:
parent
f7a1e0c503
commit
4b4bb484e7
1 changed files with 2 additions and 2 deletions
|
@ -9,10 +9,11 @@
|
||||||
- ca-certificates
|
- ca-certificates
|
||||||
- curl
|
- curl
|
||||||
- gnupg
|
- gnupg
|
||||||
|
|
||||||
- name: Add an Apt signing key, uses whichever key is at the URL
|
- name: Add an Apt signing key, uses whichever key is at the URL
|
||||||
ansible.builtin.apt_key:
|
ansible.builtin.apt_key:
|
||||||
url: https://download.docker.com/linux/debian/gpg
|
url: https://download.docker.com/linux/debian/gpg
|
||||||
state: present
|
state: absent
|
||||||
|
|
||||||
- name: Download /etc/apt/keyrings/docker.gpg
|
- name: Download /etc/apt/keyrings/docker.gpg
|
||||||
ansible.builtin.get_url:
|
ansible.builtin.get_url:
|
||||||
|
@ -20,7 +21,6 @@
|
||||||
dest: /etc/apt/keyrings/docker.gpg
|
dest: /etc/apt/keyrings/docker.gpg
|
||||||
mode: '0440'
|
mode: '0440'
|
||||||
|
|
||||||
|
|
||||||
- name: Add docker repository
|
- name: Add docker repository
|
||||||
ansible.builtin.apt_repository:
|
ansible.builtin.apt_repository:
|
||||||
repo: "deb [arch=amd64 signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/debian {{ ansible_distribution_release }} stable"
|
repo: "deb [arch=amd64 signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/debian {{ ansible_distribution_release }} stable"
|
||||||
|
|
Loading…
Reference in a new issue