Skip to content

Commit

Permalink
Merge pull request #554 from wireapp/sventennie/add_skip_kubeconfig_c…
Browse files Browse the repository at this point in the history
…opying_flag

Add skip_kubeconfig_copying flag (SER-43)
  • Loading branch information
supersven authored Apr 14, 2022
2 parents a9f49b7 + 5fb6123 commit daebed4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ansible/kubernetes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,11 @@
- delegate_to: localhost
block:
- name: "Checking if 'kubeconfig' file already exists"
when: skip_kubeconfig_copying is undefined or skip_kubeconfig_copying == false
stat:
path: "{{ inventory_dir }}/../kubeconfig"
register: file_kubeconfig
- when: not file_kubeconfig.stat.exists
- when: (skip_kubeconfig_copying is undefined or skip_kubeconfig_copying == false) and (not file_kubeconfig.stat.exists)
block:
- name: 'Renaming kubeconfig file provided by Kubespray'
copy:
Expand Down

0 comments on commit daebed4

Please sign in to comment.