Merge pull request #69 from ktibi/fix_directory_registry

Add creation for directory CA docker
This commit is contained in:
Mark Goddard 2017-11-13 15:32:27 +00:00 committed by GitHub
commit 3a8d0c7ba8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -6,6 +6,13 @@
become: True
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
copy:
src: "{{ docker_registry_ca }}"