Skip to content
Snippets Groups Projects
Commit 7516c2c0 authored by r0zehnal0vak's avatar r0zehnal0vak
Browse files

add conditions and tag

parent 1f39546a
No related branches found
No related tags found
1 merge request!23update tasks
- name: Include kubeconfig_localhost variable - name: Include kubeconfig_localhost variable
include_vars: include_vars:
file: "{{ playbook_dir }}/../artifacts/admin.conf" file: "{{ playbook_dir }}/../artifacts/admin.conf"
when: kubeconfig_localhost == true
- name: Modify admin.conf - name: Modify admin.conf
ansible.builtin.replace: ansible.builtin.replace:
......
...@@ -2,4 +2,7 @@ ...@@ -2,4 +2,7 @@
kubernetes.core.k8s: kubernetes.core.k8s:
kubeconfig: "{{ playbook_dir }}/../artifacts/admin.conf" kubeconfig: "{{ playbook_dir }}/../artifacts/admin.conf"
state: present state: present
src: "{{ role_path }}/templates/storageClass.yaml" src: "{{ role_path }}/templates/storageClass.yaml"
\ No newline at end of file when: install_storageclass == true
tags:
- storageclass
...@@ -27,4 +27,5 @@ external_cloud_provider: openstack ...@@ -27,4 +27,5 @@ external_cloud_provider: openstack
install_nginx_task: false # tag: ingress install_nginx_task: false # tag: ingress
install_monitoring_task: false # tag: monitoring install_monitoring_task: false # tag: monitoring
install_cert_manager_task: false # tag: certmanager install_cert_manager_task: false # tag: certmanager
kubeconfig_localhost: true kubeconfig_localhost: true
\ No newline at end of file install_storageclass: false # tag: storageclass
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment