Skip to content

Commit 08ef208

Browse files
nikoshellNMertsch
andauthored
Drop usage of apt_key (#247)
* Drop usage of apt_key * pre-commit * Use docker from stable 22_04 * Ubuntu 22.04 -> 24.04 --------- Co-authored-by: Niklas Mertsch <[email protected]>
1 parent f430343 commit 08ef208

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

ansible/deploy-playbook.yml

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -34,20 +34,22 @@
3434

3535
- name: Install Docker
3636
block:
37-
- name: Add Docker GPG key
38-
apt_key:
39-
url: https://download.docker.com/linux/ubuntu/gpg
40-
state: present
41-
42-
- name: Add Docker repository
43-
apt_repository:
44-
repo: deb [arch=amd64] https://download.docker.com/linux/ubuntu {{ ansible_lsb.codename }} stable
37+
- name: Add docker APT repository (Ubuntu 24.04)
38+
ansible.builtin.deb822_repository:
39+
name: docker
40+
types: [ deb ]
41+
uris: "https://download.docker.com/linux/ubuntu"
42+
signed_by: "https://download.docker.com/linux/ubuntu/gpg"
43+
suites: ["noble"]
44+
components: [stable]
4545
state: present
46+
enabled: yes
4647

4748
- name: Install Docker
4849
apt:
4950
name: docker-ce
5051
state: present
52+
update_cache: yes
5153

5254
- name: Clone repository
5355
git:

0 commit comments

Comments
 (0)