Hello Stephan,
On 3/31/21 1:11 PM, Stephan Boldt via FreeIPA-users wrote:
Hello,
I want to install IdM / FreeIPA on a RHEL 8.3 VM using Ansible running
on a CentOS 8 VM. I installed the ansible-freeipa package und set up
inventory and playbook as shown in the docs. Running the playbook then
fails with the following message:
TASK [ipaserver : Install - Server installation test]
**********************************************************************************************
task path: /usr/share/ansible/roles/ipaserver/tasks/install.yml:46
An exception occurred during task execution. To see the full
traceback, use -vvv. The error was: ModuleNotFoundError: No module
named 'ipapython'
fatal: [th-ha-thidm-01t.tdeidmpoc.thalia.de]: FAILED! => {"changed":
false, "module_stderr": "Shared connection to 172.28.210.44
closed.\r\n", "module_stdout": "Traceback (most recent call
last):\r\n
File
\"/root/.ansible/tmp/ansible-tmp-1617185879.276394-306034-84664824025072/AnsiballZ_ipaserver_test.py\",
line 102, in <module>\r\n _ansiballz_main()\r\n File
\"/root/.ansible/tmp/ansible-tmp-1617185879.276394-306034-84664824025072/AnsiballZ_ipaserver_test.py\",
line 94, in _ansiballz_main\r\n invoke_module(zipped_mod,
temp_path, ANSIBALLZ_PARAMS)\r\n File
\"/root/.ansible/tmp/ansible-tmp-1617185879.276394-306034-84664824025072/AnsiballZ_ipaserver_test.py\",
line 40, in invoke_module\r\n
runpy.run_module(mod_name='ansible.modules.ipaserver_test',
init_globals=None, run_name='__main__', alter_sys=True)\r\n File
\"/usr/lib64/python3.6/runpy.py\", line 205, in run_module\r\n
return _run_module_code(code, init_globals, run_name, mod_spec)\r\n
File \"/usr/lib64/python3.6/runpy.py\", line 96, in
_run_module_code\r\n mod_name, mod_spec, pkg_name, script_name)\r\n
File \"/usr/lib64/python3.6/runpy.py\", line 85, in _run_code\r\n
exec(code, run_globals)\r\n File
\"/tmp/ansible_ipaserver_test_payload_tlzfemmq/ansible_ipaserver_test_payload.zip/ansible/modules/ipaserver_test.py\",
line 215, in <module>\r\n File
\"/tmp/ansible_ipaserver_test_payload_tlzfemmq/ansible_ipaserver_test_payload.zip/ansible/module_utils/ansible_ipa_server.py\",
line 48, in <module>\r\nModuleNotFoundError: No module named
'ipapython'\r\n", "msg": "MODULE FAILURE\nSee stdout/stderr
for the
exact error", "rc": 1}
I've then installed the ipa-python-compat package as this was the only
ipapython like package that I was able to find but it didn't fix the
problem.
When trying to import the module from the python CLI it shows no errors:
# python3
Python 3.6.8 (default, Aug 24 2020, 17:57:11)
[GCC 8.3.1 20191121 (Red Hat 8.3.1-5)] on linux
Type "help", "copyright", "credits" or "license"
for more information.
>>> import ipapython
>>>
Does anyone have an Idea what might be the problem?
did you set ipaserver_install_packages=no in your inventory? This disables to
install the needed packages on the node that you are trying to deploy.
Thanks in advance!
regards
Stephan
_______________________________________________
FreeIPA-users mailing list -- freeipa-users(a)lists.fedorahosted.org
To unsubscribe send an email to freeipa-users-leave(a)lists.fedorahosted.org
Fedora Code of Conduct:
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines:
https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives:
https://lists.fedorahosted.org/archives/list/freeipa-users@lists.fedoraho...
Do not reply to spam on the list, report it:
https://pagure.io/fedora-infrastructure
Regards,
Thomas