zuul-jobs/test-playbooks/registry/roles/ensure-registry-cert/tasks/main.yaml
Andreas Jaeger a87a1e45b1 Rename test install role to ensure-
install-registry-cert is an internal test-only role, rename it to ensure
to be consistent with the removal of all install- roles.

Change-Id: I9906428639f1370fb39633f13ec18a22f1381453
2020-05-26 09:41:33 +02:00

11 lines
339 B
YAML

- name: Ensure registry cert directory exists
become: true
file:
path: "/etc/docker/certs.d/{{ registry_host }}:{{ registry_port }}/"
state: directory
- name: Write registry TLS certificate
become: true
copy:
content: "{{ registry_cert }}"
dest: "/etc/docker/certs.d/{{ registry_host }}:{{ registry_port }}/ca.crt"