Trying to use ansible python module location as ansible python interpeter
18 views
Skip to first unread message
Adar Shaked
unread,
Dec 1, 2020, 3:35:49 AM12/1/20
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Ansible Project
Hi all, i am creating venv at runtime and installs ansible inside like: /tmp/tmp123/bin/ansible-playbook ansible version shows: ansible python module location =/tmp/tmp123/lib/python3.6/site-packages/ansible executable location = =/tmp/tmp123/bin/ansible-playbook
im running a playbook locally(means localhost) and i want the ansible python interpeter will be the one in the venv that i installed ansible inside. again , i know the loaction of the venv on runtime so i cant use `ansible_python_interpeter`. maybe there are environment variables that represent the ansible-playbook executable path that i can use in my playbook?or the python path of ansible executable uses ?
David Shrewsbury
unread,
Dec 1, 2020, 7:04:42 AM12/1/20
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message