diff --git a/readme.md b/readme.md index b24a20e..748b674 100644 --- a/readme.md +++ b/readme.md @@ -7,7 +7,7 @@ This role configures [Docker](), for reasons. | Operating System | Version | | --- | ----- | | Debian | 13 | -| Debian | 13 | +| Ubuntu | 24 | ## Tags diff --git a/tasks/install.yaml b/tasks/install.yaml index bd4252e..c593e82 100644 --- a/tasks/install.yaml +++ b/tasks/install.yaml @@ -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"