While executing the playbook below:
- name: GetProcessList with sysnr
community.sap_libs.sap_control_exec:
hostname: all
sysnr: "00"
function: GetProcessList
I get the following error:
An exception occurred during task execution. To see the full traceback, use -vvv. The error was: ModuleNotFoundError: No module named 'suds'
fatal: [hostname]: FAILED! => changed=false
msg: Failed to import the required Python library (suds) on hostname's Python /usr/bin/python3. Please read the module documentation and install it 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
After executing it with -vvvv option, I get the below information:
The full traceback is:
Traceback (most recent call last):
File "/tmp/ansible_community.sap_libs.sap_control_exec_payload_da6n801n/ansible_community.sap_libs.sap_control_exec_payload.zip/ansible_collections/community/sap_libs/plugins/modules/sap_control_exec.py", line 264, in <module>
ModuleNotFoundError: No module named 'suds'
fatal: [hostname]: FAILED! => changed=false
invocation:
module_args:
force: false
function: GetProcessList
hostname: hostname
parameter: null
password: null
port: null
sysnr: '"00"'
username: null
msg: Failed to import the required Python library (suds) on hostname's Python /usr/bin/python3. Please read the module documentation and install it 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
I tried to install suds using pip install suds-py3
, but it didn’t seem to fix the issue. So, I’m a bit puzzled. Do I need to install additional modules?
Any help will be greatly appreciated. Perhaps, I’m missing something obvious.
Thanks,
Deoraj
New contributor
dalok is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.