Should only check for api-server running on the master.

If this runs on other nodes, it will fail the playbook.
This commit is contained in:
Greg Althaus 2017-01-17 15:57:34 -06:00
parent 82bdf9832c
commit eb3a840622

View file

@ -5,6 +5,7 @@
until: result.status == 200 until: result.status == 200
retries: 10 retries: 10
delay: 6 delay: 6
when: inventory_hostname == groups['kube-master'][0]
- name: Kubernetes Apps | Lay Down KubeDNS Template - name: Kubernetes Apps | Lay Down KubeDNS Template
template: src={{item.file}} dest={{kube_config_dir}}/{{item.file}} template: src={{item.file}} dest={{kube_config_dir}}/{{item.file}}