Browse Source

change owner to root for bin_dir directory (#6814)

pull/6823/head
Sergey 4 years ago
committed by GitHub
parent
commit
e49330d6ee
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 20 additions and 1 deletions
  1. 21
      roles/kubernetes/preinstall/tasks/0050-create_directories.yml

21
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 }}"

Loading…
Cancel
Save