diff --git a/roles/kubernetes/client/tasks/main.yml b/roles/kubernetes/client/tasks/main.yml index d34131a3a..67b2da325 100644 --- a/roles/kubernetes/client/tasks/main.yml +++ b/roles/kubernetes/client/tasks/main.yml @@ -40,7 +40,7 @@ src: "{{ kube_config_dir }}/admin.conf" dest: "/root/.kube/config" remote_src: yes - mode: "0700" + mode: "0600" backup: yes - name: Copy admin kubeconfig to ansible host diff --git a/roles/kubernetes/master/tasks/kubeadm-setup.yml b/roles/kubernetes/master/tasks/kubeadm-setup.yml index 3fcd04715..b841d8357 100644 --- a/roles/kubernetes/master/tasks/kubeadm-setup.yml +++ b/roles/kubernetes/master/tasks/kubeadm-setup.yml @@ -128,7 +128,7 @@ content: "{{ item.content | b64decode }}" owner: root group: root - mode: 0700 + mode: 0600 no_log: true register: copy_kubeadm_certs with_items: "{{ kubeadm_certs.results }}"