Force security access on etcd directory
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
This commit is contained in:
parent
7366d6f469
commit
5380ba2455
1 changed files with 10 additions and 0 deletions
|
|
@ -113,6 +113,16 @@
|
||||||
# - groups['KubernetesMasters'] | length > 1
|
# - groups['KubernetesMasters'] | length > 1
|
||||||
changed_when: False
|
changed_when: False
|
||||||
|
|
||||||
|
- name: Secure etcd directory
|
||||||
|
file:
|
||||||
|
path: "/var/lib/etcd"
|
||||||
|
state: directory
|
||||||
|
owner: root
|
||||||
|
group: root
|
||||||
|
mode: 0700
|
||||||
|
when:
|
||||||
|
- kubernetes_master|bool
|
||||||
|
|
||||||
- name: Deploy initial kubeadm config
|
- name: Deploy initial kubeadm config
|
||||||
template:
|
template:
|
||||||
src: kubeadm-config.yaml.j2
|
src: kubeadm-config.yaml.j2
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue