From eb3a84062286565806c72ad16b5a876c6a06fe57 Mon Sep 17 00:00:00 2001 From: Greg Althaus Date: Tue, 17 Jan 2017 15:57:34 -0600 Subject: [PATCH] Should only check for api-server running on the master. If this runs on other nodes, it will fail the playbook. --- roles/kubernetes-apps/ansible/tasks/main.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/roles/kubernetes-apps/ansible/tasks/main.yaml b/roles/kubernetes-apps/ansible/tasks/main.yaml index b693055a5..787fa156a 100644 --- a/roles/kubernetes-apps/ansible/tasks/main.yaml +++ b/roles/kubernetes-apps/ansible/tasks/main.yaml @@ -5,6 +5,7 @@ until: result.status == 200 retries: 10 delay: 6 + when: inventory_hostname == groups['kube-master'][0] - name: Kubernetes Apps | Lay Down KubeDNS Template template: src={{item.file}} dest={{kube_config_dir}}/{{item.file}}