Fix kubernetes cert permission sync
Add `state: directory` to `file` task so that `recurse: yes` will actually take effect and ensure certs/keys have the right file mode and owner
This commit is contained in:
parent
f4476f25bd
commit
cd153a1fb3
1 changed files with 1 additions and 0 deletions
|
@ -179,6 +179,7 @@
|
|||
file:
|
||||
path: "{{ kube_cert_dir }}"
|
||||
group: "{{ kube_cert_group }}"
|
||||
state: directory
|
||||
owner: kube
|
||||
mode: "u=rwX,g-rwx,o-rwx"
|
||||
recurse: yes
|
||||
|
|
Loading…
Reference in a new issue