fix: missing docker group + template error
This commit is contained in:
@@ -53,9 +53,16 @@
|
||||
- docker-buildx-plugin
|
||||
- docker-compose-plugin
|
||||
force: true
|
||||
ignore_errors: '{{ ansible_check_mode }}'
|
||||
|
||||
- name: Install
|
||||
- name: Ensure group "docker" exists
|
||||
ansible.builtin.group:
|
||||
name: docker
|
||||
state: present
|
||||
|
||||
- name: Add user to group
|
||||
ansible.builtin.user:
|
||||
name: "{{ ansible_user_id }}"
|
||||
groups: docker
|
||||
append: yes
|
||||
append: yes
|
||||
ignore_errors: '{{ ansible_check_mode }}'
|
||||
5
playbooks/templates/docker.sources.j2
Normal file
5
playbooks/templates/docker.sources.j2
Normal file
@@ -0,0 +1,5 @@
|
||||
Types: deb
|
||||
URIs: https://download.docker.com/linux/ubuntu
|
||||
Suites: {{ ansible_distribution_release }}
|
||||
Components: stable
|
||||
Signed-By: /etc/apt/keyrings/docker.asc
|
||||
Reference in New Issue
Block a user