Set python interpreter for connection:local plays

These are the last two remaining 'connection: local' plays.
We set the python interpreter to be used as the host instead
of the Ansible venv. This resolves the issue with the venv
being python3 but the playbook modules requiring python2
libraries.

Change-Id: Ib4726afbaad1e084e9126202706114bfec5585c2
This commit is contained in:
Jesse Pretorius 2017-07-10 11:42:27 +01:00 committed by Jesse Pretorius (odyssey4me)
parent 16f0609040
commit e115d4d19a
2 changed files with 2 additions and 0 deletions

View File

@ -23,3 +23,4 @@
command: "{{ upgrade_scripts }}/ansible_fact_cleanup.sh"
vars:
upgrade_scripts: "{{ playbook_dir }}/../scripts"
ansible_python_interpreter: "/usr/bin/python"

View File

@ -114,6 +114,7 @@
- _zuul_cloner_check.rc == 0
vars:
ansible_python_interpreter: "/usr/bin/python"
roles: "{{ lookup('file', role_file) | from_yaml }}"
role_file: '../ansible-role-requirements.yml'
role_path_default: '/etc/ansible/roles'