From e5fdc63bdd28eb479fe46dafe72a4d7dceb8b416 Mon Sep 17 00:00:00 2001 From: Xavier Lange Date: Wed, 25 Jan 2017 14:03:34 -0800 Subject: [PATCH] Bugfix: skip cloud_config on etcd --- roles/kubernetes/preinstall/tasks/main.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/roles/kubernetes/preinstall/tasks/main.yml b/roles/kubernetes/preinstall/tasks/main.yml index e3ecf25aa..e7955ac76 100644 --- a/roles/kubernetes/preinstall/tasks/main.yml +++ b/roles/kubernetes/preinstall/tasks/main.yml @@ -156,7 +156,7 @@ dest: "{{ kube_config_dir }}/cloud_config" group: "{{ kube_cert_group }}" mode: 0640 - when: cloud_provider is defined and cloud_provider == "openstack" + when: inventory_hostname in groups['k8s-cluster'] and cloud_provider is defined and cloud_provider == "openstack" tags: [cloud-provider, openstack] - name: Write azure cloud-config @@ -165,7 +165,7 @@ dest: "{{ kube_config_dir }}/cloud_config" group: "{{ kube_cert_group }}" mode: 0640 - when: cloud_provider is defined and cloud_provider == "azure" + when: inventory_hostname in groups['k8s-cluster'] and cloud_provider is defined and cloud_provider == "azure" tags: [cloud-provider, azure] - include: etchosts.yml