From e33f1728f01d7bb054b4efcb7d4e8b22fc1fab30 Mon Sep 17 00:00:00 2001 From: Charles Rodetsky Date: Thu, 8 Dec 2016 16:06:11 -0500 Subject: [PATCH] Changes targets for bootstrap and preinstall to k8s-cluster Some environments may include hosts in the inventory that are not part of the k8s cluster and do not need preinstall or bootstrap performed. This change retains only the fact gathering with target of `all`. --- cluster.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cluster.yml b/cluster.yml index 18e458652..e465f8b1f 100644 --- a/cluster.yml +++ b/cluster.yml @@ -1,5 +1,5 @@ --- -- hosts: all +- hosts: k8s-cluster:etcd any_errors_fatal: true gather_facts: false roles: @@ -12,7 +12,7 @@ any_errors_fatal: true gather_facts: true -- hosts: all:!network-storage +- hosts: k8s-cluster:etcd:!network-storage any_errors_fatal: true roles: - { role: kubernetes/preinstall, tags: preinstall }