Skip to content

Commit

Permalink
force python interpreter to virtuelenv
Browse files Browse the repository at this point in the history
  • Loading branch information
otakup0pe committed Feb 27, 2018
1 parent 76478ed commit 4b39d11
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ script:
- ansible-playbook -i inventory test.yml --syntax-check

# Play test
- travis_wait 30 ansible-playbook -i inventory test.yml --connection=local --sudo -e "$ROLE_OPTIONS" -vvv
- travis_wait 30 ansible-playbook -i inventory test.yml --connection=local --sudo -e "$ROLE_OPTIONS" -vvv -e "ansible_python_interpreter=`which pyton`"

# Idempotence test
- ansible-playbook -i inventory test.yml --connection=local --sudo -e "$ROLE_OPTIONS" > idempotence_out
Expand Down
2 changes: 0 additions & 2 deletions test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
- hosts: all
remote_user: root
become: yes
vars:
ansible_python_interpreter: "/usr/bin/env python"
vars_files:
- "defaults/main.yml"
- "vars/main.yml"
Expand Down

0 comments on commit 4b39d11

Please sign in to comment.