c12s-kubespray/cluster.yml
Dan Bode 1f7231f600 Install python 2.7 on Ubuntu Xenial
The base image of Ubuntu Xenial does not
come with Python pre-installed, this results
in ansible failing until it is installed.

This patch adds code to ensure that ansible
installs it as a dependency.
2016-11-18 14:05:08 -08:00

43 lines
1 KiB
YAML

---
- hosts: all
gather_facts: false
roles:
- bootstrap-os
tags:
- bootstrap-os
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'
- hosts: all
gather_facts: true
- hosts: all
roles:
- { role: kubernetes/preinstall, tags: preinstall }
- hosts: etcd:!k8s-cluster
roles:
- { role: etcd, tags: etcd }
- hosts: k8s-cluster
roles:
- { role: etcd, tags: etcd }
- { role: kubernetes/node, tags: node }
- { role: network_plugin, tags: network }
- hosts: kube-master
roles:
- { role: kubernetes/master, tags: master }
- { role: kubernetes-apps/lib, tags: apps }
- { role: kubernetes-apps/network_plugin, tags: network }
- hosts: k8s-cluster
roles:
- { role: dnsmasq, tags: dnsmasq }
- hosts: kube-master[0]
roles:
- { role: kubernetes-apps/lib, tags: apps }
- { role: kubernetes-apps, tags: apps }