zuul-jobs/test-playbooks/registry/roles/install-registry-cert/tasks/main.yaml
James E. Blair 2f2d6ce3f7 Add a registry test job
This exercises the intermediate and buildset registry roles.

Change-Id: Ic0da2d6b48a7b9f9b616033c70db471ba98181b4
2019-06-03 09:03:35 -07: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"