Skip to content

Commit

Permalink
Always create docker deamon.json
Browse files Browse the repository at this point in the history
  • Loading branch information
p-j-smith committed Nov 28, 2024
1 parent f2423cd commit 7d6a70c
Showing 1 changed file with 16 additions and 16 deletions.
32 changes: 16 additions & 16 deletions roles/docker/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,27 +72,27 @@
mode: "0644"
notify: Reload docker

- name: Ensure docker config directory exists - {{ docker_config_dir }}
ansible.builtin.file:
path: "{{ docker_config_dir }}"
owner: "{{ docker_owner }}"
group: "{{ docker_group }}"
state: directory
mode: "0700"

- name: Write docker daemon configuration file
ansible.builtin.template:
src: daemon.json.j2
dest: "{{ docker_daemon_conf_file }}"
owner: "{{ docker_owner }}"
group: "{{ docker_group }}"
mode: "0640"

- name: Generate CA, server, and client certificates
when: docker_generate_certificates
notify:
- Restart docker
block:
- name: Ensure docker config directory exists - {{ docker_config_dir }}
ansible.builtin.file:
path: "{{ docker_config_dir }}"
owner: "{{ docker_owner }}"
group: "{{ docker_group }}"
state: directory
mode: "0700"

- name: Write docker daemon configuration file
ansible.builtin.template:
src: daemon.json.j2
dest: "{{ docker_daemon_conf_file }}"
owner: "{{ docker_owner }}"
group: "{{ docker_group }}"
mode: "0640"

- name: Generate CA certificate
ansible.builtin.import_tasks: ca-cert.yml

Expand Down

0 comments on commit 7d6a70c

Please sign in to comment.