From ce8ba1f170ccec953283ac4bd5b227402d526932 Mon Sep 17 00:00:00 2001 From: Sergey Date: Mon, 28 Jan 2019 12:59:15 +0300 Subject: [PATCH] create artifacts_dir (#4079) --- roles/kubernetes/client/tasks/main.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/roles/kubernetes/client/tasks/main.yml b/roles/kubernetes/client/tasks/main.yml index c5f5585ad..dae323f0e 100644 --- a/roles/kubernetes/client/tasks/main.yml +++ b/roles/kubernetes/client/tasks/main.yml @@ -30,6 +30,16 @@ mode: "0600" backup: yes +- name: Create kube artifacts dir + file: + path: "{{ artifacts_dir }}" + mode: "0750" + state: directory + delegate_to: localhost + become: no + run_once: yes + when: kubeconfig_localhost|default(false) + - name: Generate admin kubeconfig with external api endpoint shell: >- {{ bin_dir }}/kubeadm alpha