411e148450
Adds support for enabling TLS on the Docker registry. Change-Id: Idac6a1dfb17f4a22b3043531d1181a5585cafe6a Story: 2007952 Task: 40428
17 lines
697 B
YAML
17 lines
697 B
YAML
---
|
|
- import_tasks: config.yml
|
|
|
|
- name: Ensure Docker registry container is running
|
|
docker_container:
|
|
env: "{{ item.value.env }}"
|
|
image: "{{ item.value.image }}"
|
|
name: "{{ item.value.container_name }}"
|
|
ports: "{{ item.value.ports | default(omit) }}"
|
|
privileged: "{{ item.value.privileged | default(omit) }}"
|
|
read_only: "{{ item.value.read_only | default(omit) }}"
|
|
restart_policy: "{{ docker_registry_restart_policy }}"
|
|
restart_retries: "{{ docker_registry_restart_retries | default(omit) }}"
|
|
state: "{{ item.value.enabled | ternary('started', 'absent') }}"
|
|
volumes: "{{ item.value.volumes | select | list }}"
|
|
with_dict: "{{ docker_registry_services }}"
|