docker.yml aktualisiert
This commit is contained in:
parent
471016f375
commit
708785ccd7
13
docker.yml
13
docker.yml
@ -67,13 +67,18 @@
|
|||||||
install_recommends: no
|
install_recommends: no
|
||||||
|
|
||||||
- name: Add signing key
|
- name: Add signing key
|
||||||
ansible.builtin.apt_key:
|
ansible.builtin.shell: curl -fsSL https://download.docker.com/linux/{{ ansible_distribution | lower }}/gpg | gpg --output "/usr/share/keyrings/gpg-pub-docker.gpg" --dearmor
|
||||||
url: "https://download.docker.com/linux/{{ ansible_distribution | lower }}/gpg"
|
args:
|
||||||
state: present
|
creates: /home/docker/nextcloud.{{inventory_hostname}}/env
|
||||||
|
|
||||||
|
#- name: Add signing key
|
||||||
|
# ansible.builtin.apt_key:
|
||||||
|
# url: "https://download.docker.com/linux/{{ ansible_distribution | lower }}/gpg"
|
||||||
|
# state: present
|
||||||
|
|
||||||
- name: Add repository into sources list
|
- name: Add repository into sources list
|
||||||
ansible.builtin.apt_repository:
|
ansible.builtin.apt_repository:
|
||||||
repo: "deb https://download.docker.com/linux/{{ ansible_distribution | lower }} {{ ansible_distribution_release }} stable"
|
repo: "deb [arch=amd64 signed-by=/usr/share/keyrings/gpg-pub-docker.gpg] https://download.docker.com/linux/{{ ansible_distribution | lower }} {{ ansible_distribution_release }} stable"
|
||||||
state: present
|
state: present
|
||||||
filename: docker
|
filename: docker
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user