a80cdcf867
Some systems (e.g. CentOS on Azure) have requiretty in sudoers which makes pipelining fail.
52 lines
1.1 KiB
YAML
52 lines
1.1 KiB
YAML
---
|
|
- hosts: all
|
|
any_errors_fatal: true
|
|
gather_facts: false
|
|
vars:
|
|
ansible_ssh_pipelining: false
|
|
roles:
|
|
- bootstrap-os
|
|
tags:
|
|
- bootstrap-os
|
|
|
|
|
|
- hosts: all
|
|
any_errors_fatal: true
|
|
gather_facts: true
|
|
|
|
- hosts: all:!network-storage
|
|
any_errors_fatal: true
|
|
roles:
|
|
- { role: kubernetes/preinstall, tags: preinstall }
|
|
- { role: docker, tags: docker }
|
|
|
|
- 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 }
|
|
- { role: kubernetes/preinstall, tags: resolvconf }
|
|
|
|
- hosts: kube-master[0]
|
|
any_errors_fatal: true
|
|
roles:
|
|
- { role: kubernetes-apps/lib, tags: apps }
|
|
- { role: kubernetes-apps, tags: apps }
|