update tag for fetching kubeconfig

This commit is contained in:
srwadleigh 2024-06-07 17:02:53 +00:00
parent 4d3b6341a9
commit e9a7fde860
2 changed files with 2 additions and 3 deletions

View File

@ -37,7 +37,7 @@ k8s_taint_servers: false
k8s_label_agents: false k8s_label_agents: false
# fetch kubeconfig from the bootstrap node # fetch kubeconfig from the bootstrap node
k8s_get_kubeconfig: true # k8s_get_kubeconfig: always | never
# shared k8s api port # shared k8s api port
k8s_api_port: 6443 k8s_api_port: 6443

View File

@ -110,10 +110,9 @@
ansible.builtin.include_tasks: "shared/kubeconf.yml" ansible.builtin.include_tasks: "shared/kubeconf.yml"
when: when:
- k8s_node_type == "bootstrap" - k8s_node_type == "bootstrap"
- k8s_get_kubeconf
tags: tags:
- k8s-get-kubeconf - k8s-get-kubeconf
- "{{ k8s_get_kubeconf | d('always') }}"
- name: include secret block - name: include secret block
ansible.builtin.include_tasks: "shared/secrets.yml" ansible.builtin.include_tasks: "shared/secrets.yml"
when: when: