diff --git a/roles/kubernetes/preinstall/tasks/0050-create_directories.yml b/roles/kubernetes/preinstall/tasks/0050-create_directories.yml index 35d7e04dfcfd4a291e558cd0a3b47db3e7e2a1cd..09d283dcc72d1e0c8b6ca20a2cb05c1f44d134c7 100644 --- a/roles/kubernetes/preinstall/tasks/0050-create_directories.yml +++ b/roles/kubernetes/preinstall/tasks/0050-create_directories.yml @@ -19,12 +19,11 @@ - node with_items: - "{{ kube_config_dir }}" - - "{{ kube_cert_dir }}" - "{{ kube_manifest_dir }}" - "{{ kube_script_dir }}" - "{{ kubelet_flexvolumes_plugins_dir }}" -- name: Create other directories +- name: Create other directories of root owner file: path: "{{ item }}" state: directory @@ -43,6 +42,7 @@ - master - node with_items: + - "{{ kube_cert_dir }}" - "{{ bin_dir }}" - name: Check if kubernetes kubeadm compat cert dir exists