From 1f7231f600a0d7b45f3cd9e37efbc56ea89f67d1 Mon Sep 17 00:00:00 2001 From: Dan Bode Date: Fri, 18 Nov 2016 14:05:08 -0800 Subject: [PATCH] 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. --- cluster.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/cluster.yml b/cluster.yml index 12c090169..6b9f4799b 100644 --- a/cluster.yml +++ b/cluster.yml @@ -5,7 +5,10 @@ - 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