install_docker/tasks/configure.yml
Bertrand Lanson ad984efa64
All checks were successful
test / Linting (push) Successful in 36s
test / Molecule tests (default, debian12) (push) Successful in 1m51s
test / Molecule tests (default, debian11) (push) Successful in 2m17s
test / Molecule tests (default, ubuntu2004) (push) Successful in 2m29s
test / Molecule tests (default, ubuntu2204) (push) Successful in 2m0s
test / Molecule tests (with_custom_config, debian11) (push) Successful in 1m44s
test / Molecule tests (with_custom_config, debian12) (push) Successful in 1m55s
test / Molecule tests (with_custom_config, ubuntu2204) (push) Successful in 2m6s
test / Molecule tests (with_custom_config, ubuntu2004) (push) Successful in 2m17s
remove destructive behaviour by never restarting docker, only reloads
2023-09-07 18:01:46 +02:00

20 lines
521 B
YAML

---
# task/configure file for install_docker
- name: "Add specified users to group {{ install_docker_group }}"
ansible.builtin.user:
name: "{{ item }}"
groups: "{{ install_docker_group }}"
append: true
loop: "{{ install_docker_users }}"
- name: "Copy daemon.json template"
ansible.builtin.template:
src: daemon.json.j2
dest: "{{ install_docker_daemon_dir }}/daemon.json"
owner: root
group: root
mode: '0644'
notify:
- "systemctl-enable-docker"
- "systemctl-reload-docker"