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.
This commit is contained in:
Dan Bode 2016-11-18 14:05:08 -08:00
parent 6a398724b6
commit 1f7231f600

View file

@ -5,7 +5,10 @@
- bootstrap-os - bootstrap-os
tags: tags:
- bootstrap-os - 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 - hosts: all
gather_facts: true gather_facts: true