Galaxy installation via Ansible

Hello,

I’m trying to follow the tutorial to install a local galaxy server using ansible and when running the playbook I get the following error:

TASK [natefoo.postgresql_objects : Create and drop users] ******************************************************************
An exception occurred during task execution. To see the full traceback, use -vvv. The error was: AttributeError: 'NoneType' object has no attribute '__version__'
failed: (item={'name': 'galaxy'}) => {"ansible_loop_var": "item", "changed": false, "item": {"name": "galaxy"}, "module_stderr": "Traceback (most recent call last):\n  File \"/var/tmp/ansible-tmp-1650470619.697677-3153329-92378227580523/AnsiballZ_postgresql_user.py\", line 107, in <module>\n    _ansiballz_main()\n  File \"/var/tmp/ansible-tmp-1650470619.697677-3153329-92378227580523/AnsiballZ_postgresql_user.py\", line 99, in _ansiballz_main\n    invoke_module(zipped_mod, temp_path, ANSIBALLZ_PARAMS)\n  File \"/var/tmp/ansible-tmp-1650470619.697677-3153329-92378227580523/AnsiballZ_postgresql_user.py\", line 47, in invoke_module\n    runpy.run_module(mod_name='ansible_collections.community.postgresql.plugins.modules.postgresql_user', init_globals=dict(_module_fqn='ansible_collections.community.postgresql.plugins.modules.postgresql_user', _modlib_path=modlib_path),\n  File \"/home/fyrseq/miniconda3/lib/python3.8/runpy.py\", line 207, in run_module\n    return _run_module_code(code, init_globals, run_name, mod_spec)\n  File \"/home/fyrseq/miniconda3/lib/python3.8/runpy.py\", line 97, in _run_module_code\n    _run_code(code, mod_globals, init_globals,\n  File \"/home/fyrseq/miniconda3/lib/python3.8/runpy.py\", line 87, in _run_code\n    exec(code, run_globals)\n  File \"/tmp/ansible_postgresql_user_payload_903w3p_e/ansible_postgresql_user_payload.zip/ansible_collections/community/postgresql/plugins/modules/postgresql_user.py\", line 1015, in <module>\n  File \"/tmp/ansible_postgresql_user_payload_903w3p_e/ansible_postgresql_user_payload.zip/ansible_collections/community/postgresql/plugins/modules/postgresql_user.py\", line 935, in main\n  File \"/tmp/ansible_postgresql_user_payload_903w3p_e/ansible_postgresql_user_payload.zip/ansible_collections/community/postgresql/plugins/module_utils/postgres.py\", line 187, in get_conn_params\nAttributeError: 'NoneType' object has no attribute '__version__'\n", "module_stdout": "", "msg": "MODULE FAILURE\nSee stdout/stderr for the exact error", "rc": 1}

I have double and triple checked that my files are setup exactly as the tutorial is so I’m not sure what is going wrong on this part.

Thanks!

Hi! That role does not support check mode. Please run your playbook without it.

2 Likes