change owner to root for bin_dir directory (#6814)
This commit is contained in:
parent
dbe6eb20c8
commit
e49330d6ee
1 changed files with 20 additions and 1 deletions
|
@ -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…
Reference in a new issue