ansible-galaxy errors

34 views
Skip to first unread message

Andrew Meyer

unread,
Aug 30, 2023, 5:27:22 PM8/30/23
to Ansible Project

The other day I suffered a power outage and got everything back online but now when I run ansible-galaxy it errors out no matter what I do. Has anyone else run into this issue??

[ansible@jump04 ansible1]$ /usr/bin/ansible-galaxy install --force -p roles -r /opt/syseng/automation/ansible1/roles.yml --ignore-errors -vvv
ansible-galaxy [core 2.14.2]
  config file = /opt/syseng/automation/ansible1/ansible.cfg
  configured module search path = ['/opt/syseng/automation/ansible1/{{ ANSIBLE_HOME ~ "/plugins/modules', '/usr/share/ansible/plugins/modules', '/opt/syseng/automation/ansible1/library" }}']
  ansible python module location = /usr/lib/python3.11/site-packages/ansible
  ansible collection location = /opt/syseng/automation/ansible1/ansible_collections:/opt/syseng/automation/ansible1/collection
  executable location = /usr/bin/ansible-galaxy
  python version = 3.11.2 (main, May 24 2023, 00:00:00) [GCC 11.3.1 20221121 (Red Hat 11.3.1-4)] (/usr/bin/python3.11)
  jinja version = 3.1.2
  libyaml = True
Using /opt/syseng/automation/ansible1/ansible.cfg as config file
Reading requirement file at '/opt/syseng/automation/ansible1/roles.yml'
Starting galaxy role install process
Processing role grafana_new
ERROR! Unexpected Exception, this is probably a bug: 'bool' object is not subscriptable
the full traceback was:

Traceback (most recent call last):
  File "/usr/lib/python3.11/site-packages/ansible/cli/__init__.py", line 647, in cli_executor
    exit_code = cli.run()
                ^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/ansible/cli/galaxy.py", line 714, in run
    return context.CLIARGS['func']()
           ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/ansible/cli/galaxy.py", line 115, in method_wrapper
    return wrapped_method(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/ansible/cli/galaxy.py", line 1357, in execute_install
    self._execute_install_role(role_requirements)
  File "/usr/lib/python3.11/site-packages/ansible/cli/galaxy.py", line 1428, in _execute_install_role
    if role.install_info['version'] != role.version or force:
       ~~~~~~~~~~~~~~~~~^^^^^^^^^^^
TypeError: 'bool' object is not subscriptable
[ansible@jump04 ansible1]$

Andrew Meyer

unread,
Aug 31, 2023, 10:37:57 AM8/31/23
to Ansible Project
Disregard, deleted all roles and re-downloaded them.
Reply all
Reply to author
Forward
0 new messages