docker.yml aktualisiert

This commit is contained in:
olli 2023-07-25 10:31:06 +02:00
parent 471016f375
commit 708785ccd7

View File

@ -67,13 +67,18 @@
install_recommends: no
- name: Add signing key
ansible.builtin.apt_key:
url: "https://download.docker.com/linux/{{ ansible_distribution | lower }}/gpg"
state: present
ansible.builtin.shell: curl -fsSL https://download.docker.com/linux/{{ ansible_distribution | lower }}/gpg | gpg --output "/usr/share/keyrings/gpg-pub-docker.gpg" --dearmor
args:
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
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
filename: docker