# Problem with ansible collection

**URL:** <https://forum.ansible.com/t/problem-with-ansible-collection/38353>\
**Category:** AWX Project\
**Tags:** awx, galaxy-ng\
**Created:** [August 18, 2023, 2:20pm UTC](https://forum.ansible.com/t/problem-with-ansible-collection/38353 "2023-08-18T14:20:19Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![dawid.grygrzc](https://avatars.discourse-cdn.com/v4/letter/d/59ef9b/32.png) [@dawid.grygrzc](https://forum.ansible.com/u/dawid.grygrzc)\
**Post date:** [August 18, 2023, 2:20pm UTC](https://forum.ansible.com/t/problem-with-ansible-collection/38353/1 "2023-08-18T14:20:19Z")

</div>

Hi all!  
I want to use the ‘community.general.ipmi\_power’ module which is included in the ‘community.general’ collection.

After updating my gitlab repository I am not able to sync my project (always failed).  
Do you have any ideas?

Logs output:  
**PLAY [Update source tree if necessary] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\***

**TASK [Update project using git] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\***  
**ok: [localhost]**

**TASK [Set the git repository version] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\***  
**ok: [localhost]**

**TASK [Repository Version] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\***  
**ok: [localhost] =\> {**  
**“msg”: “Repository Version 0fa920ca1c22a5e89cce085de031d156686d77be”**  
**}**

**PLAY [Perform project signature/checksum verification] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\***

**PLAY [Install content with ansible-galaxy command if necessary] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\***

**TASK [Warn about disabled content sync] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\***  
**skipping: [localhost]**

**TASK [End play due to disabled content sync] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\***  
**skipping: [localhost]**

**TASK [Fetch galaxy roles from roles/requirements.(yml/yaml)] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\***  
**[WARNING]: Unable to find**  
**‘/var/lib/awx/projects/\_19\_\_awx\_cleanup\_playbooks/roles’ in expected paths (use**  
**-vvvvv to see paths)**  
**skipping: [localhost]**

**TASK [Fetch galaxy collections from collections/requirements.(yml/yaml)] \*\*\*\*\*\*\***  
**failed: [localhost] (item=/var/lib/awx/projects/\_19\_\_awx\_cleanup\_playbooks/collections/requirements.yml) =\> {“ansible\_loop\_var”: “item”, “changed”: true, “cmd”: [“ansible-galaxy”, “collection”, “install”, “-r”, “/var/lib/awx/projects/\_19\_\_awx\_cleanup\_playbooks/collections/requirements.yml”], “delta”: “0:03:01.363336”, “end”: “2023-08-18 13:47:51.748764”, “item”: “/var/lib/awx/projects/\_19\_\_awx\_cleanup\_playbooks/collections/requirements.yml”, “msg”: “non-zero return code”, “rc”: 1, “start”: “2023-08-18 13:44:50.385428”, “stderr”: “[WARNING]: Skipping Galaxy server [https://galaxy.ansible.com](https://galaxy.ansible.com). Got an unexpected\nerror when getting available versions of collection community.general: Unknown\nerror when attempting to call Galaxy at ‘[https://galaxy.ansible.com/api/](https://galaxy.ansible.com/api/)’:\n\<urlopen error [Errno 99] Cannot assign requested address\>. \<urlopen error\n[Errno 99] Cannot assign requested address\>\nERROR! Unknown error when attempting to call Galaxy at ‘[https://galaxy.ansible.com/api/](https://galaxy.ansible.com/api/)’: \<urlopen error [Errno 99] Cannot assign requested address\>. \<urlopen error [Errno 99] Cannot assign requested address\>”, “stderr\_lines”: [“[WARNING]: Skipping Galaxy server [https://galaxy.ansible.com](https://galaxy.ansible.com). Got an unexpected”, “error when getting available versions of collection community.general: Unknown”, “error when attempting to call Galaxy at ‘[https://galaxy.ansible.com/api/](https://galaxy.ansible.com/api/)’:”, “\<urlopen error [Errno 99] Cannot assign requested address\>. \<urlopen error”, “[Errno 99] Cannot assign requested address\>”, “ERROR! Unknown error when attempting to call Galaxy at ‘[https://galaxy.ansible.com/api/](https://galaxy.ansible.com/api/)’: \<urlopen error [Errno 99] Cannot assign requested address\>. \<urlopen error [Errno 99] Cannot assign requested address\>”], “stdout”: “Starting galaxy collection install process\nProcess install dependency map”, “stdout\_lines”: [“Starting galaxy collection install process”, “Process install dependency map”]}**

**PLAY RECAP \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\***  
**localhost : ok=3 changed=0 unreachable=0 failed=1 skipped=2 rescued=0 ignored=0**

tree output:  
**.**  
**├── collections**  
**│ └── requirements.yml**  
**├── README.md**  
**└── reset\_bmc.yml**

requirements.yml output:

---

<div class="post-metadata">

**Author:** ![AWX\_Project](https://avatars.discourse-cdn.com/v4/letter/a/eada6e/32.png) [@AWX\_Project](https://forum.ansible.com/u/AWX_Project)\
**Post date:** [August 25, 2023, 5:16pm UTC](https://forum.ansible.com/t/problem-with-ansible-collection/38353/2 "2023-08-25T17:16:52Z")

</div>

Are you able connect (curl) [https://galaxy.ansible.com](https://galaxy.ansible.com) from inside the task container?

kubectl exec -it deploy/awx-task -c awx-task – bash

what if you leave off “source” in the requirements.yml file (should default to galaxy)? does it work then?

AWX Team

---

<div class="post-metadata">

**Author:** ![dawid.grygrzc](https://avatars.discourse-cdn.com/v4/letter/d/59ef9b/32.png) [@dawid.grygrzc](https://forum.ansible.com/u/dawid.grygrzc)\
**Post date:** [August 28, 2023, 10:31am UTC](https://forum.ansible.com/t/problem-with-ansible-collection/38353/3 "2023-08-28T10:31:21Z")

</div>

Hi,  
The problem has been solved by adding HTTP\_PROXY, HTTPS\_PROXY, NO\_PROXY in Settings\>Job\> Environment Variables for Galaxy Commands.  
After that projects syncs successfully.
