docker.yml aktualisiert

This commit is contained in:
olli 2023-07-25 10:46:47 +02:00
parent 3105be01fb
commit 33fda708e8

View File

@ -76,13 +76,13 @@
# url: "https://download.docker.com/linux/{{ ansible_distribution | lower }}/gpg"
# state: present
- name: Add repository into sources list
- name: Remove old repository from sources if exists
ansible.builtin.apt_repository:
repo: "deb https://download.docker.com/linux/{{ ansible_distribution | lower }} {{ ansible_distribution_release }} stable"
state: absent
filename: docker
- name: Add repository into sources list
- name: Add repository into list
ansible.builtin.apt_repository:
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