Skip to content
This repository has been archived by the owner on Jun 18, 2021. It is now read-only.

can't install role from ansible-galaxy #10

Closed
pkubica opened this issue Feb 22, 2018 · 2 comments
Closed

can't install role from ansible-galaxy #10

pkubica opened this issue Feb 22, 2018 · 2 comments

Comments

@pkubica
Copy link

pkubica commented Feb 22, 2018

$ ansible-galaxy install oVirt.vm-infra -vvv
ansible-galaxy 2.4.2.0
config file = /etc/ansible/ansible.cfg
configured module search path = [u'/home/pkubica/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules']
ansible python module location = /usr/lib/python2.7/site-packages/ansible
executable location = /usr/bin/ansible-galaxy
python version = 2.7.5 (default, Aug 4 2017, 00:39:18) [GCC 4.8.5 20150623 (Red Hat 4.8.5-16)]
Using /etc/ansible/ansible.cfg as config file
Opened /home/pkubica/.ansible_galaxy
Processing role oVirt.vm-infra
Opened /home/pkubica/.ansible_galaxy

Traceback (most recent call last):
File "/usr/bin/ansible-galaxy", line 106, in
exit_code = cli.run()
File "/usr/lib/python2.7/site-packages/ansible/cli/galaxy.py", line 150, in run
self.execute()
File "/usr/lib/python2.7/site-packages/ansible/cli/init.py", line 155, in execute
fn()
File "/usr/lib/python2.7/site-packages/ansible/cli/galaxy.py", line 393, in execute_install
installed = role.install()
File "/usr/lib/python2.7/site-packages/ansible/galaxy/role.py", line 332, in install
self.path = self.paths[nextidx]
IndexError: list index out of range

@pkubica
Copy link
Author

pkubica commented Feb 22, 2018

it caused by this bug:
ansible/galaxy#149

@pkubica
Copy link
Author

pkubica commented Feb 22, 2018

to solve this: up to version of ansible 2.5 use ansible-galaxy with sudo
fix: ansible/ansible#32627

@pkubica pkubica closed this as completed Feb 22, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant