Skip to content

Issues in running ansible playbook for adding virtual machine information #679

Answered by sc68cal
AkhilaGarlapally asked this question in Q&A
Discussion options

You must be logged in to vote

The Ansible that you have installed uses Python 2.7.18 - see your output from ansible --version - setting ansible_python_interpreter does not fix this issue, since you can see in the stack trace that you are still loading code from the Python 2.7 installation.

In general, we do not support Python 2 when using this collection. I would suggest investigating something like pyenv or if your Linux distribution has Python 3 available, and an Ansible package that uses Python 3 as its dependency.

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@AkhilaGarlapally
Comment options

@sc68cal
Comment options

@rodvand
Comment options

@AkhilaGarlapally
Comment options

@sc68cal
Comment options

Answer selected by AkhilaGarlapally
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants