We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f430343 commit 08ef208Copy full SHA for 08ef208
1 file changed
ansible/deploy-playbook.yml
@@ -34,20 +34,22 @@
34
35
- name: Install Docker
36
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
+ - name: Add docker APT repository (Ubuntu 24.04)
+ ansible.builtin.deb822_repository:
+ name: docker
+ types: [ deb ]
+ uris: "https://download.docker.com/linux/ubuntu"
+ signed_by: "https://download.docker.com/linux/ubuntu/gpg"
+ suites: ["noble"]
+ components: [stable]
45
state: present
46
+ enabled: yes
47
48
49
apt:
50
name: docker-ce
51
52
+ update_cache: yes
53
54
- name: Clone repository
55
git:
0 commit comments