2015-10-03 20:19:50 +00:00
|
|
|
---
|
2016-08-12 14:06:31 +00:00
|
|
|
- hosts: all
|
2016-09-06 14:04:41 +00:00
|
|
|
gather_facts: false
|
|
|
|
roles:
|
|
|
|
- bootstrap-os
|
|
|
|
tags:
|
|
|
|
- bootstrap-os
|
2016-11-18 22:05:08 +00:00
|
|
|
tasks:
|
|
|
|
- name: install python 2
|
|
|
|
raw: test -e /usr/bin/python || (apt -y update && apt install -y python-minimal)
|
|
|
|
when: ansible_distribution == 'Ubuntu' and ansible_distribution_release == 'xenial'
|
2016-09-19 19:12:42 +00:00
|
|
|
|
|
|
|
- hosts: all
|
2016-09-06 14:04:41 +00:00
|
|
|
gather_facts: true
|
2016-09-19 19:12:42 +00:00
|
|
|
|
2016-10-24 13:11:52 +00:00
|
|
|
- hosts: all
|
2015-12-17 21:46:50 +00:00
|
|
|
roles:
|
2015-12-31 09:03:22 +00:00
|
|
|
- { role: kubernetes/preinstall, tags: preinstall }
|
2016-10-24 13:11:52 +00:00
|
|
|
|
|
|
|
- hosts: etcd:!k8s-cluster
|
|
|
|
roles:
|
2016-08-11 19:14:11 +00:00
|
|
|
- { role: etcd, tags: etcd }
|
2016-07-26 13:18:47 +00:00
|
|
|
|
|
|
|
- hosts: k8s-cluster
|
|
|
|
roles:
|
|
|
|
- { role: etcd, tags: etcd }
|
2015-12-23 22:27:40 +00:00
|
|
|
- { role: kubernetes/node, tags: node }
|
2016-01-30 15:04:47 +00:00
|
|
|
- { role: network_plugin, tags: network }
|
2015-10-03 20:19:50 +00:00
|
|
|
|
2015-12-11 10:40:56 +00:00
|
|
|
- hosts: kube-master
|
|
|
|
roles:
|
|
|
|
- { role: kubernetes/master, tags: master }
|
2016-11-03 15:57:11 +00:00
|
|
|
- { role: kubernetes-apps/lib, tags: apps }
|
|
|
|
- { role: kubernetes-apps/network_plugin, tags: network }
|
2016-03-18 14:07:33 +00:00
|
|
|
|
2016-03-21 10:37:35 +00:00
|
|
|
- hosts: k8s-cluster
|
2016-03-18 14:07:33 +00:00
|
|
|
roles:
|
2016-03-21 10:37:35 +00:00
|
|
|
- { role: dnsmasq, tags: dnsmasq }
|
2016-05-04 16:00:46 +00:00
|
|
|
|
|
|
|
- hosts: kube-master[0]
|
|
|
|
roles:
|
2016-11-03 15:57:11 +00:00
|
|
|
- { role: kubernetes-apps/lib, tags: apps }
|
2016-09-19 19:12:42 +00:00
|
|
|
- { role: kubernetes-apps, tags: apps }
|