May be you can use something like this.
ansible_python_interpreter: /usr/libexec/platform-python
ansible_python_interpreter: '{{ ansible_playbook_python }}'
Regards
Prasad
On Sun, 6 Sep, 2020, 12:17 am [email protected], <[email protected]> wrote:
> Thank you. That made me realize I did
>
> $ pip install ansible
>
> But once I did
>
> $ pip3 install ansible
>
> it's all fixed.
>
> Chris
> On Saturday, September 5, 2020 at 2:16:53 PM UTC-4 [email protected]
> wrote:
>
>> How did you install ansible ?
>>
>> On Sat, 5 Sep 2020 at 19:08, [email protected] <[email protected]> wrote:
>>
>>> I get warning when I execute an ansible command, for example. (Macbook
>>> Pro)
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>> $ ansible --version
>>>
>>>
>>> /Library/Python/2.7/site-packages/cryptography/__init__.py:39:
>>> CryptographyDeprecationWarning: Python 2 is no longer supported by the
>>> Python core team. Support for it is now deprecated in cryptography, and
>>> will be removed in a future release.
>>>
>>>
>>> CryptographyDeprecationWarning,
>>>
>>>
>>> ansible 2.9.13
>>>
>>>
>>> config file = /Users/cfouts/.ansible.cfg
>>>
>>>
>>> configured module search path = [u'/Path/.ansible/plugins/modules',
>>> u'/usr/share/ansible/plugins/modules']
>>>
>>>
>>> ansible python module location =
>>> /Path/Library/Python/2.7/lib/python/site-packages/ansible
>>>
>>>
>>> executable location = /usr/local/bin/ansible
>>>
>>>
>>> python version = 2.7.16 (default, Jun 5 2020, 22:59:21) [GCC 4.2.1
>>> Compatible Apple LLVM 11.0.3 (clang-1103.0.29.20) (-macos10.15-objc-
>>>
>>> Do I just set up the
>>>
>>> ansible_python_interpreter = ???
>>> in my config file for a different python library?
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>> --
>>>
>>>
>>> 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 [email protected].
>>>
>>>
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/ansible-project/1b49ca2b-6750-4b88-b49c-86419720905en%40googlegroups.com
>>> <https://groups.google.com/d/msgid/ansible-project/1b49ca2b-6750-4b88-b49c-86419720905en%40googlegroups.com?utm_medium=email&utm_source=footer>
>>> .
>>>
>>>
>>> --
>> Sent from a mobile device - please excuse the brevity, spelling and
>> punctuation.
>>
> --
> 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 [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/077b30bf-3f94-45ec-8717-ff0887c8ee7bn%40googlegroups.com
> <https://groups.google.com/d/msgid/ansible-project/077b30bf-3f94-45ec-8717-ff0887c8ee7bn%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>
--
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 [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/CAKG6amdLUXo%3DHTETOi_LJkQe%3DvFAfL2t8xfn2aWfX0U66NXWUQ%40mail.gmail.com.