diff --git a/roles/kubernetes/secrets/tasks/gen_certs_script.yml b/roles/kubernetes/secrets/tasks/gen_certs_script.yml index c1dfeb394..011575358 100644 --- a/roles/kubernetes/secrets/tasks/gen_certs_script.yml +++ b/roles/kubernetes/secrets/tasks/gen_certs_script.yml @@ -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