e33f1728f0
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`.
48 lines
1 KiB
YAML
48 lines
1 KiB
YAML
---
|
|
- hosts: k8s-cluster:etcd
|
|
any_errors_fatal: true
|
|
gather_facts: false
|
|
roles:
|
|
- bootstrap-os
|
|
tags:
|
|
- bootstrap-os
|
|
|
|
|
|
- hosts: all
|
|
any_errors_fatal: true
|
|
gather_facts: true
|
|
|
|
- hosts: k8s-cluster:etcd:!network-storage
|
|
any_errors_fatal: true
|
|
roles:
|
|
- { role: kubernetes/preinstall, tags: preinstall }
|
|
|
|
- hosts: etcd:!k8s-cluster
|
|
any_errors_fatal: true
|
|
roles:
|
|
- { role: etcd, tags: etcd }
|
|
|
|
- hosts: k8s-cluster
|
|
any_errors_fatal: true
|
|
roles:
|
|
- { role: etcd, tags: etcd }
|
|
- { role: kubernetes/node, tags: node }
|
|
- { role: network_plugin, tags: network }
|
|
|
|
- hosts: kube-master
|
|
any_errors_fatal: true
|
|
roles:
|
|
- { role: kubernetes/master, tags: master }
|
|
- { role: kubernetes-apps/lib, tags: apps }
|
|
- { role: kubernetes-apps/network_plugin, tags: network }
|
|
|
|
- hosts: k8s-cluster
|
|
any_errors_fatal: true
|
|
roles:
|
|
- { role: dnsmasq, tags: dnsmasq }
|
|
|
|
- hosts: kube-master[0]
|
|
any_errors_fatal: true
|
|
roles:
|
|
- { role: kubernetes-apps/lib, tags: apps }
|
|
- { role: kubernetes-apps, tags: apps }
|