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:
parent
6a398724b6
commit
1f7231f600
1 changed files with 4 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue