Sergey
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
20 additions and
1 deletions
-
roles/kubernetes/preinstall/tasks/0050-create_directories.yml
|
|
@ -17,13 +17,32 @@ |
|
|
|
- master |
|
|
|
- node |
|
|
|
with_items: |
|
|
|
- "{{ bin_dir }}" |
|
|
|
- "{{ kube_config_dir }}" |
|
|
|
- "{{ kube_cert_dir }}" |
|
|
|
- "{{ kube_manifest_dir }}" |
|
|
|
- "{{ kube_script_dir }}" |
|
|
|
- "{{ kubelet_flexvolumes_plugins_dir }}" |
|
|
|
|
|
|
|
- name: Create other directories |
|
|
|
file: |
|
|
|
path: "{{ item }}" |
|
|
|
state: directory |
|
|
|
owner: root |
|
|
|
when: inventory_hostname in groups['k8s-cluster'] |
|
|
|
become: true |
|
|
|
tags: |
|
|
|
- kubelet |
|
|
|
- k8s-secrets |
|
|
|
- kube-controller-manager |
|
|
|
- kube-apiserver |
|
|
|
- bootstrap-os |
|
|
|
- apps |
|
|
|
- network |
|
|
|
- master |
|
|
|
- node |
|
|
|
with_items: |
|
|
|
- "{{ bin_dir }}" |
|
|
|
|
|
|
|
- name: Check if kubernetes kubeadm compat cert dir exists |
|
|
|
stat: |
|
|
|
path: "{{ kube_cert_compat_dir }}" |
|
|
|