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`.
This commit is contained in:
Charles Rodetsky 2016-12-08 16:06:11 -05:00
parent 710d5ae48e
commit e33f1728f0

View file

@ -1,5 +1,5 @@
--- ---
- hosts: all - hosts: k8s-cluster:etcd
any_errors_fatal: true any_errors_fatal: true
gather_facts: false gather_facts: false
roles: roles:
@ -12,7 +12,7 @@
any_errors_fatal: true any_errors_fatal: true
gather_facts: true gather_facts: true
- hosts: all:!network-storage - hosts: k8s-cluster:etcd:!network-storage
any_errors_fatal: true any_errors_fatal: true
roles: roles:
- { role: kubernetes/preinstall, tags: preinstall } - { role: kubernetes/preinstall, tags: preinstall }