regluit/provisioning/setup-prod.yml

18 lines
468 B
YAML
Raw Normal View History

- hosts: regluit-prod
gather_facts: false
tasks:
# Need to install python2.7 and pip first so Ansible will function
# This is due to Ubuntu 16 shipping with Python3 by default
- name: Install python2.7 and pip
become: true
raw: bash -c "apt -qqy update && apt install -qqy python2.7-dev python-pip"
register: output
changed_when: output.stdout != ""
- name: Gathering Facts
setup:
- include_role:
name: regluit_prod