feat: add ubuntu support
This commit is contained in:
parent
81480ca575
commit
79f9dd5bc8
2 changed files with 6 additions and 5 deletions
|
|
@ -54,16 +54,17 @@
|
|||
# add docker gpg key
|
||||
- name: "docker gpg key"
|
||||
ansible.builtin.get_url:
|
||||
url: "https://download.docker.com/linux/debian/gpg"
|
||||
url: "https://download.docker.com/linux/{{ ansible_distribution | lower }}/gpg"
|
||||
dest: "/etc/apt/keyrings/docker.asc"
|
||||
mode: "0644"
|
||||
|
||||
# add docker repository
|
||||
- name: "docker repository"
|
||||
ansible.builtin.apt_repository:
|
||||
repo:
|
||||
"deb [arch=amd64 signed-by=/etc/apt/keyrings/docker.asc] \
|
||||
https://download.docker.com/linux/debian {{ ansible_distribution_release }} stable"
|
||||
repo: "deb [arch={{ ansible_architecture | replace('x86_64', 'amd64') }}\
|
||||
signed-by=/etc/apt/keyrings/docker.asc]\
|
||||
https://download.docker.com/linux/{{ ansible_distribution | lower }}\
|
||||
{{ ansible_distribution_release }} stable"
|
||||
state: "present"
|
||||
filename: "docker"
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue