diff --git a/roles/kubernetes/node/tasks/secrets.yml b/roles/kubernetes/node/tasks/secrets.yml index 4d6a2dcc3..4b2c20802 100644 --- a/roles/kubernetes/node/tasks/secrets.yml +++ b/roles/kubernetes/node/tasks/secrets.yml @@ -48,3 +48,4 @@ - "{{ kube_cert_dir}}/node.pem" - "{{ kube_cert_dir}}/node-key.pem" delegate_to: "{{ groups['kube-master'][0] }}" + when: inventory_hostname not in "{{ groups['kube-master'] }}"