ansible/roles/registry/tasks/main.yaml

20 lines
749 B
YAML

- set_fact:
registry_combined_values: "{{ registry_default_values | combine(registry_values, recursive=true) }}"
- name: Deploy Docker registry
kubernetes.core.helm:
create_namespace: true
release_namespace: "{{ registry_namespace | default(namespace) }}"
release_name: "{{ registry_name | default('docker-registry') }}"
chart_ref: "{{ registry_chart | default('ghp/docker-registry') }}"
chart_version: "{{ registry_version | default(omit) }}"
release_values: "{{ registry_combined_values | from_yaml }}"
wait: true
- name: Deploy readonly public ingress for Docker registry
when: registry_readonly_ingress is defined
k8s:
state: present
definition:
"{{ registry_readonly_ingress_definition }}"