removed unnecessary architecture and added debian restriction to the repository
This commit is contained in:
parent
3591ffe76c
commit
1f98550eed
|
@ -1,13 +1,9 @@
|
||||||
---
|
---
|
||||||
- name: retrieve machine DPKG architecture
|
|
||||||
ansible.builtin.command:
|
|
||||||
cmd: dpkg --print-architecture
|
|
||||||
register: dpkg_architecture
|
|
||||||
changed_when: false
|
|
||||||
- name: ensure Docker repository is present
|
- name: ensure Docker repository is present
|
||||||
ansible.builtin.copy:
|
ansible.builtin.copy:
|
||||||
content: "deb [arch={{ dpkg_architecture.stdout }} signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/debian {{ ansible_distribution_release }} stable"
|
content: "deb [signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/debian {{ ansible_distribution_release }} stable"
|
||||||
dest: /etc/apt/sources.list.d/docker.list
|
dest: /etc/apt/sources.list.d/docker.list
|
||||||
owner: root
|
owner: root
|
||||||
group: root
|
group: root
|
||||||
mode: 0644
|
mode: 0644
|
||||||
|
when: ansible_facts.os_family == "Debian"
|
||||||
|
|
Loading…
Reference in New Issue