2023-04-04 20:02:28 +00:00
|
|
|
---
|
2023-04-07 22:24:04 +00:00
|
|
|
# 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 }}"
|
2023-04-09 20:17:16 +00:00
|
|
|
|
2023-04-09 21:28:29 +00:00
|
|
|
- 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"
|
2023-09-07 16:01:46 +00:00
|
|
|
- "systemctl-reload-docker"
|