summaryrefslogtreecommitdiffstats
path: root/ansible/roles/rancher/tasks/rancher_server.yml
diff options
context:
space:
mode:
Diffstat (limited to 'ansible/roles/rancher/tasks/rancher_server.yml')
-rw-r--r--ansible/roles/rancher/tasks/rancher_server.yml10
1 files changed, 10 insertions, 0 deletions
diff --git a/ansible/roles/rancher/tasks/rancher_server.yml b/ansible/roles/rancher/tasks/rancher_server.yml
index a0893b0b..f467ff3f 100644
--- a/ansible/roles/rancher/tasks/rancher_server.yml
+++ b/ansible/roles/rancher/tasks/rancher_server.yml
@@ -93,3 +93,13 @@
data:
option: audit_log.purge.after.seconds
value: "{{ rancher.audit_log_purge_after_seconds }}"
+
+- name: Ensure .kube directory exists
+ file:
+ path: "{{ kube_directory }}"
+ state: directory
+
+- name: Create kube config
+ template:
+ src: kube_config.j2
+ dest: "{{ kube_directory }}/config"