stdevel / ansible-collection-uyuni

Ansible Collection for Uyuni / SUSE Manager
https://galaxy.ansible.com/stdevel/uyuni
GNU General Public License v3.0
21 stars 6 forks source link

install_patches error: ... Please consider setting 'allowModules=true'. #46

Open ulziibuyan opened 3 months ago

ulziibuyan commented 3 months ago

I ran the sample ansible playbook install_patches and received the following error from my Uyuni:

...
TASK [Installing patches] ***************************************************************************
An exception occurred during task execution. To see the full traceback, use -vvv. The error was: ansible_collections.stdevel.uyuni.plugins.module_utils.exceptions.SessionException: Generic remote communication error: "redstone.xmlrpc.XmlRpcFault: Operation not allowed for systems that have modular channels assigned. Please consider setting 'allowModules=true'."
...

I tried adding allowModules = True to the API call and it works. Can I contribute code adding this parameter to install_patches?

References: https://github.com/uyuni-project/poc-uyuni-api/blob/master/cmd/mgr-api.spec.conf