Commit 1f3a5427 by Jillian Vogel Committed by GitHub

Merge pull request #3606 from open-craft/jill/xenial-bootstrap

Adds python role, which installs python 2.7 using raw ansible
parents ed22514e aee416a7
......@@ -3,6 +3,13 @@
# Stateless app server configuration, designed to be used with external mysql,
# mongo, rabbitmq, and elasticsearch services.
- name: Bootstrap instance(s)
hosts: all
gather_facts: no
become: True
roles:
- python
- name: Configure instance(s)
hosts: all
become: True
......
......@@ -4,6 +4,13 @@
# for single server community
# installs
- name: Bootstrap instance(s)
hosts: all
gather_facts: no
become: True
roles:
- python
- name: Configure instance(s)
hosts: all
become: True
......
# Install python2.7 + the /usr/bin/python symlink.
python_packages:
- python-minimal
# Bootstrap packages must be installed with raw commands, because ubuntu
# xenial+ cloud images don't have python2.7 installed, and ansible doesn't yet
# support python3.
- name: Update apt-get
raw: apt-get update -qq
- name: Install packages
raw: "apt-get install -qq {{ item }}"
with_items: "{{ python_packages }}"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment