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