change owner to root for bin_dir directory (#6814)

pull/6823/head
Sergey 2020-10-13 04:13:22 +03:00 committed by GitHub
parent dbe6eb20c8
commit e49330d6ee
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 20 additions and 1 deletions

View File

@ -17,13 +17,32 @@
- master - master
- node - node
with_items: with_items:
- "{{ bin_dir }}"
- "{{ kube_config_dir }}" - "{{ kube_config_dir }}"
- "{{ kube_cert_dir }}" - "{{ kube_cert_dir }}"
- "{{ kube_manifest_dir }}" - "{{ kube_manifest_dir }}"
- "{{ kube_script_dir }}" - "{{ kube_script_dir }}"
- "{{ kubelet_flexvolumes_plugins_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 - name: Check if kubernetes kubeadm compat cert dir exists
stat: stat:
path: "{{ kube_cert_compat_dir }}" path: "{{ kube_cert_compat_dir }}"