Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Specifying Python version in the Ansible playbooks #2

Open
pjakovits opened this issue May 13, 2020 · 0 comments
Open

Specifying Python version in the Ansible playbooks #2

pjakovits opened this issue May 13, 2020 · 0 comments

Comments

@pjakovits
Copy link

pjakovits commented May 13, 2020

I ran into some issues with Ansible using the wrong Python version when xOpera is deploying the test infrastructure using create_ti.yml playbook. The issue seems to be related to how xOpera uses Ansible, but adding:

  vars:
    ansible_python_interpreter: /usr/bin/python3

inside the create_ti.yml Ansible playbook fixed these issues for me. I also added:
become: yes
line to elevate Ansible commands to have permissions to install linux packages.
The start of the reate_ti.yml file after the change:

- name: Run SockShop
  hosts: localhost
  become: yes
  vars:
    ansible_python_interpreter: /usr/bin/python3
  tasks:
@pjakovits pjakovits changed the title Specifying Python version in the Ansible Specifying Python version in the Ansible playbooks May 13, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant