Skip to content

Commit

Permalink
sit.glusterfs: Install ansible collections with --no-cache
Browse files Browse the repository at this point in the history
Recently the following error is seen while trying to install ansible
collections:

[WARNING]: Skipping Galaxy server https://galaxy.ansible.com/api/. Got
  an unexpected error when getting available versions of collection community.general:
  '/api/v3/plugin/ansible/content/published/collections/index/community/general/versions/'
ERROR! Unexpected Exception, this is probably a bug:
  '/api/v3/plugin/ansible/content/published/collections/index/community/general/versions/'

We are already stuck with ansible version from 2.12.x series due to
another issue[1] from gluster-ansible-infra and fix for the above error
is only available from v2.12.8[2]. Given that the fixed version is out
for a while and updates are not yet released via repositories we could
only keep it running with a workaround of disabling the cache while
fetching the versions for a particular collection as described in
upstream issue[3].

[1] gluster/gluster-ansible-infra#135
[2] ansible/ansible#81830 (comment)
[3] ansible/ansible#77911 (comment)

Signed-off-by: Anoop C S <anoopcs@cryptolab.net>
  • Loading branch information
anoopcs9 committed Oct 6, 2023
1 parent 670d148 commit 6f8e3b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vagrant/roles/sit.glusterfs/tasks/setup/centos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
block:
- name: Install ansible collections
become: no
shell: ansible-galaxy collection install {{ item }}
shell: ansible-galaxy collection install --no-cache {{ item }}
loop:
- ansible.posix
- community.general
Expand Down

0 comments on commit 6f8e3b2

Please sign in to comment.