Skip to content
Snippets Groups Projects
Commit 2932673f authored by r0zehnal0vak's avatar r0zehnal0vak
Browse files

conditional installation

parent 9750cbb3
No related branches found
No related tags found
No related merge requests found
......@@ -2,13 +2,15 @@
kubernetes.core.helm_repository:
name: ingress-nginx
repo_url: "https://kubernetes.github.io/ingress-nginx"
when: install_nginx_task | bool
- name: Install Ingress-Nginx chart
kubernetes.core.helm:
kubeconfig: ~/kubernetes-infra-example/ansible/artifacts/admin.conf
kubeconfig: ../../../../artifacts/admin.conf
name: nginx-ingress
chart_ref: ingress-nginx/ingress-nginx
release_namespace: ingress-nginx
create_namespace: true
values_files:
- "{{ role_path }}/templates/values.yaml"
\ No newline at end of file
- "{{ role_path }}/templates/values.yaml"
when: install_nginx_task | bool
\ No newline at end of file
......@@ -23,3 +23,5 @@ cloud_provider: external
external_cloud_provider: openstack
#kube_apiserver_access_address: {{ hostvars[groups['bastion'][0]].ansible_host }}"
install_nginx_task: true
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment