ansible/roles/internal-ingress-nginx/tasks/main.yaml
2021-01-09 20:54:42 +03:00

14 lines
787 B
YAML

- set_fact:
internal_ingress_nginx_combined_values: "{{ internal_ingress_nginx_default_values | combine(internal_ingress_nginx_values, recursive=true) }}"
- name: Deploy internal Nginx Ingress
community.kubernetes.helm:
create_namespace: true
release_namespace: "{{ internal_ingress_nginx_namespace | default(ingress_namespace) | default(namespace) }}"
release_name: "{{ internal_ingress_nginx_name | default(namespace + '-internal-ingress-nginx') }}"
chart_ref: "{{ internal_ingress_nginx_chart | default('ingress-nginx/ingress-nginx') }}"
chart_version: "{{ internal_ingress_nginx_version | default(omit) }}"
release_values: "{{ internal_ingress_nginx_combined_values | from_yaml }}"
wait: true
when: internal_ingress_nginx_enabled | default(true)