Add creation for directory CA docker
This commit is contained in:
parent
fd6ed96e39
commit
ce3fd3b226
@ -6,6 +6,13 @@
|
|||||||
become: True
|
become: True
|
||||||
notify: restart docker service
|
notify: restart docker service
|
||||||
|
|
||||||
|
- name: Ensure the path for CA file for private registry exists
|
||||||
|
file:
|
||||||
|
path: "/etc/docker/certs.d/{{ docker_registry }}"
|
||||||
|
state: directory
|
||||||
|
become: True
|
||||||
|
when: docker_registry is not none and docker_registry_ca is not none
|
||||||
|
|
||||||
- name: Ensure the CA file for private registry exists
|
- name: Ensure the CA file for private registry exists
|
||||||
copy:
|
copy:
|
||||||
src: "{{ docker_registry_ca }}"
|
src: "{{ docker_registry_ca }}"
|
||||||
|
Loading…
Reference in New Issue
Block a user