geerlingguy.docker error during ansible installation

Although the installation seems to succeed and everything seems to work, we get the following error when installing v22.05 using ansible.

TASK [geerlingguy.docker : Ensure docker users are added to the docker group.] ***
An exception occurred during task execution. To see the full traceback, use -vvv. The error was: KeyError: ‘getspnam(): name not found’
failed: [] (item=galaxy) => {“ansible_loop_var”: “item”, “changed”: false, “item”: “galaxy”, “module_stderr”: “Traceback (most recent call last):\n File "/root/.ansible/tmp/ansible-tmp-1657316637.2950892-6369-118566750342709/", line 107, in \n _ansiballz_main()\n File "/root/.ansible/tmp/ansible-tmp-1657316637.2950892-6369-118566750342709/", line 99, in _ansiballz_main\n invoke_module(zipped_mod, temp_path, ANSIBALLZ_PARAMS)\n File "/root/.ansible/tmp/ansible-tmp-1657316637.2950892-6369-118566750342709/", line 47, in invoke_module\n runpy.run_module(mod_name=‘ansible.modules.user’, init_globals=dict(_module_fqn=‘ansible.modules.user’, _modlib_path=modlib_path),\n File "/opt/rh/rh-python38/root/usr/lib64/python3.8/", line 207, in run_module\n return _run_module_code(code, init_globals, run_name, mod_spec)\n File "/opt/rh/rh-python38/root/usr/lib64/python3.8/", line 97, in _run_module_code\n _run_code(code, mod_globals, init_globals,\n File "/opt/rh/rh-python38/root/usr/lib64/python3.8/", line 87, in _run_code\n exec(code, run_globals)\n File "/tmp/ansible_user_payload_6dj59spr/", line 3221, in \n File "/tmp/ansible_user_payload_6dj59spr/", line 3207, in main\n File "/tmp/ansible_user_payload_6dj59spr/", line 1055, in set_password_expire\nKeyError: ‘getspnam(): name not found’\n”, “module_stdout”: “”, “msg”: “MODULE FAILURE\nSee stdout/stderr for the exact error”, “rc”: 1}

PLAY RECAP ********************************************************************* : ok=111 changed=8 unreachable=0 failed=1 skipped=50 rescued=0 ignored=0

Our python version is 3.8.11, and in group_vars/galaxyservers.yml we have:


  • “{{ }}”

Where is galaxy. Our galaxy user is in our central AD domain, and is in the docker group:
(venv) [galaxy@lnx229 ansible]$ id
uid=31292(galaxy) gid=6023(galaxy) groups=6023(galaxy),1500(docker)

Any help or suggestions would be greatly appreciated.

Many thanks,

Hi @Devin_Bougie

Hopefully you have solved the problem here '__galaxy_user_group' is undefined".

If not, it might faster to reach out to the Galaxy Docker maintainers at this Gitter chat for more admin help bgruening/docker-galaxy-stable - Gitter