feat: add ubuntu support

This commit is contained in:
Simon Cornet 2026-03-09 18:20:41 +01:00
commit 79f9dd5bc8
2 changed files with 6 additions and 5 deletions

View file

@ -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"