Skip to content

Commit b69ab56

Browse files
committed
Update playbook to use docker.io instead of docker-ce.
Check https://stackoverflow.com/questions/45023363/
1 parent 107dcb0 commit b69ab56

File tree

1 file changed

+3
-23
lines changed

1 file changed

+3
-23
lines changed

ansible/roles/docker/tasks/main.yaml

Lines changed: 3 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,11 @@
11
---
2-
- name: Install prerequisites
2+
- name: Install Docker packages
33
ansible.builtin.apt:
44
name:
5-
- apt-transport-https
6-
- ca-certificates
7-
- curl
8-
- gnupg-agent
9-
- software-properties-common
5+
- docker.io
106
update_cache: true
117

12-
- name: Add apt-key
13-
ansible.builtin.apt_key:
14-
url: https://download.docker.com/linux/debian/gpg
15-
16-
- name: Add docker repo
17-
ansible.builtin.apt_repository:
18-
repo: deb https://download.docker.com/linux/debian bookworm stable
19-
20-
- name: Install docker
21-
ansible.builtin.apt:
22-
name:
23-
- docker-ce
24-
- docker-ce-cli
25-
- containerd.io
26-
update_cache: true
27-
28-
- name: Add user permissions
8+
- name: Add user to the docker group
299
ansible.builtin.user:
3010
name: "{{ ansible_env.SUDO_USER }}"
3111
append: true

0 commit comments

Comments
 (0)