ansible/roles/local-ingress-nginx/tasks/main.yaml
2024-05-25 18:12:30 +03:00

14 lines
726 B
YAML

- set_fact:
local_ingress_nginx_combined_values: "{{ local_ingress_nginx_default_values | combine(local_ingress_nginx_values | default({}), recursive=true) }}"
- name: Deploy local Nginx Ingress
kubernetes.core.helm:
create_namespace: true
release_namespace: "{{ local_ingress_nginx_namespace | default(ingress_namespace) | default(namespace) }}"
release_name: "{{ local_ingress_nginx_name | default(namespace + '-local-ingress-nginx') }}"
chart_ref: "{{ local_ingress_nginx_chart_ref }}"
chart_version: "{{ local_ingress_nginx_version | default(omit) }}"
release_values: "{{ local_ingress_nginx_combined_values | from_yaml }}"
wait: true
when: local_ingress_nginx_enabled | default(true)