summaryrefslogtreecommitdiffstats
path: root/ansible/roles/kubectl/tasks/main.yml
diff options
context:
space:
mode:
Diffstat (limited to 'ansible/roles/kubectl/tasks/main.yml')
-rw-r--r--ansible/roles/kubectl/tasks/main.yml10
1 files changed, 10 insertions, 0 deletions
diff --git a/ansible/roles/kubectl/tasks/main.yml b/ansible/roles/kubectl/tasks/main.yml
index 7c77c3c5..9ecb5c44 100644
--- a/ansible/roles/kubectl/tasks/main.yml
+++ b/ansible/roles/kubectl/tasks/main.yml
@@ -5,3 +5,13 @@
dest: "{{ kubectl_bin_dir }}/kubectl"
remote_src: true
mode: 0755
+
+- name: Ensure .kube directory exists
+ file:
+ path: "{{ kube_directory }}"
+ state: directory
+
+- name: Create kube config
+ template:
+ src: kube_config.j2
+ dest: "{{ kube_directory }}/config"