Re: [ansible-project] Getting ansible_python_interpreter error in mac local machine

2021-03-08 Thread Dick Visser
I don't see any question, so I will go ahead and assume you are
surprised about the python/python3 difference.
Please read: 
https://docs.ansible.com/ansible/latest/reference_appendices/interpreter_discovery.html


On Mon, 8 Mar 2021 at 20:47, Jaydip Jadeja  wrote:
>
> zsh shell : ansible-playbook -D -l 'local' -e "cluster=xxx1" cluster.yml
> error : "msg": "Failed to import the required Python library (openshift) on 
> MacBook-Pro.local's Python 
> /System/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python.
>  Please read module documentation and install in the appropriate location. If 
> the required library is installed, but Ansible is using the wrong Python 
> interpreter, please consult the documentation on ansible_python_interpreter"
>
> when I pass extra argument command : ansible-playbook -D -l 'local' -e 
> "cluster=xxx1" xxx.yml -e ansible_python_interpreter=/usr/bin/python3
>
> above playbook working without error
>
> --
> You received this message because you are subscribed to the Google Groups 
> "Ansible Project" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to ansible-project+unsubscr...@googlegroups.com.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/ansible-project/f0a35ad6-d67c-4456-8b49-d6003fcd3e84n%40googlegroups.com.



-- 
Dick Visser
Trust & Identity Service Operations Manager
GÉANT

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to ansible-project+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CAL8fbwNStV4xwJyuuR9es%3DaVhKsc9a-9AUmV_Z5A6SPYvU7n-A%40mail.gmail.com.


[ansible-project] Getting ansible_python_interpreter error in mac local machine

2021-03-08 Thread Jaydip Jadeja
zsh shell : ansible-playbook -D -l 'local' -e "cluster=xxx1" cluster.yml
error : "msg": "Failed to import the required Python library (openshift) on 
MacBook-Pro.local's Python 
/System/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python.
 
Please read module documentation and install in the appropriate location. 
If the required library is installed, but Ansible is using the wrong Python 
interpreter, please consult the documentation on ansible_python_interpreter"

when I pass extra argument command : ansible-playbook -D -l 'local' -e 
"cluster=xxx1" xxx.yml -e ansible_python_interpreter=/usr/bin/python3 

above playbook working without error

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to ansible-project+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/f0a35ad6-d67c-4456-8b49-d6003fcd3e84n%40googlegroups.com.