install_docker/tasks/configure.yml

20 lines
521 B
YAML
Raw Permalink Normal View History

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
- 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"