Firstly try to install pip package on the local machine using proper commend


yum/apt-get install python-pip


On Sun, 25 Oct, 2020, 20:26 vinoth kumar, <[email protected]> wrote:

> You need to have a proper pip package on local machine / target machine to
> run your modules (not for all module if you check in module documentation
> full fill prerequisites)
>
> Here you need to do pip install requests
> //vinoth
>
> On Sun 25. Oct 2020 at 15:15, Tony Wong <[email protected]> wrote:
>
>>
>> Keep getting this error when running my playbook
>>
>>
>> The full traceback is:
>> Traceback (most recent call last):
>>   File
>> "/tmp/ansible_community.vmware.vmware_local_user_manager_payload_jdgh1vij/ansible_community.vmware.vmware_local_user_manager_payload.zip/ansible_collections/community/vmware/plugins/module_utils/vmware.py",
>> line 25, in <module>
>>     import requests
>> ImportError: No module named 'requests'
>> fatal: [myesxserver]: FAILED! => {
>>     "changed": false,
>>     "invocation": {
>>         "module_args": {
>>             "hostname": "myesxserver",
>>             "local_user_description": null,
>>             "local_user_name": "root",
>>             "local_user_password": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER",
>>             "password": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER",
>>             "port": 443,
>>             "proxy_host": null,
>>             "proxy_port": null,
>>             "state": "present",
>>             "username": "root",
>>             "validate_certs": false
>>         }
>>     },
>>     "msg": "Failed to import the required Python library (requests) on
>> myesxserver's Python /usr/bin/python3. 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"
>> }
>>
>>
>>
>> any idea what it mean?
>>
>> --
>> 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/fd89b231-0d96-4528-8033-01440518ba8fn%40googlegroups.com
>> <https://groups.google.com/d/msgid/ansible-project/fd89b231-0d96-4528-8033-01440518ba8fn%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/CAJ%2BRxtTJ7-KbDyVwwGKp7FX_LeeFaAhZrxBwEtRvxRiVmhYv%3DA%40mail.gmail.com
> <https://groups.google.com/d/msgid/ansible-project/CAJ%2BRxtTJ7-KbDyVwwGKp7FX_LeeFaAhZrxBwEtRvxRiVmhYv%3DA%40mail.gmail.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/CAByHfFE-y4KQ8eSA13c3eM7%2Bo8ZM4vGoD6sGP-GL506tbw1X0w%40mail.gmail.com.

Reply via email to