Skip to content
This repository has been archived by the owner on Dec 11, 2022. It is now read-only.

Commit

Permalink
parameterize python version
Browse files Browse the repository at this point in the history
  • Loading branch information
ruleant committed Jan 12, 2016
1 parent c355433 commit 681ac60
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions provisioning/playbook.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
- hosts: all
vars:
python_exec: python
pip_exec: pip
tasks:
- name: "Install git"
apt: name=git state=latest
Expand All @@ -8,7 +11,7 @@
register: pipinstaller

- name: "Install Python pip"
command: python /tmp/get-pip.py
command: "{{ python_exec }} /tmp/get-pip.py"
when: pipinstaller|success
register: pipinstalled

Expand All @@ -31,9 +34,13 @@
register: libsinstalled

- name: "Install buildtimetrend requirements"
pip: requirements='/vagrant/requirements.txt'
pip:
requirements='/vagrant/requirements.txt'
executable={{ pip_exec }}
when: pipinstalled|success and libsinstalled|success

- name: "Install buildtimetrend native requirements"
pip: requirements='/vagrant/requirements_native.txt'
pip:
requirements='/vagrant/requirements_native.txt'
executable={{ pip_exec }}
when: pipinstalled|success and libsinstalled|success

0 comments on commit 681ac60

Please sign in to comment.