# AWX collections/requirements.yml

**URL:** <https://forum.ansible.com/t/awx-collections-requirements-yml/4029>\
**Category:** Get Help\
**Tags:** collections, awx, galaxy-ng\
**Created:** [February 23, 2024, 9:24pm UTC](https://forum.ansible.com/t/awx-collections-requirements-yml/4029 "2024-02-23T21:24:14Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![chr00ted](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/chr00ted/32/2188_2.png) [@chr00ted](https://forum.ansible.com/u/chr00ted)\
**Post date:** [February 23, 2024, 9:24pm UTC](https://forum.ansible.com/t/awx-collections-requirements-yml/4029/1 "2024-02-23T21:24:14Z")

</div>

Hello all, in one of my AWX projects I have the normal collections directory and the requirements.yml underneath. In the requirements.yml I’m listing a single ansible-galaxy requirement needed. I now need not only fortinet.fortios, but community.general as well.

My original requirements.yml looked like this:  
`—  
collections:

- name: fortinet.fortios  
version: 2.3.5  
source: [https://galaxy.ansible.com``](https://galaxy.ansible.com%60%60)

I tried adding a line for community general underneath and AWX didnt like that when I refreshed the project:

`—  
collections:

- name: fortinet.fortios  
version: 2.3.5  
source: [https://galaxy.ansible.com](https://galaxy.ansible.com)
- name: community.general  
version: 8.30  
source: [https://galaxy.ansible.com``](https://galaxy.ansible.com%60%60)

Is there anyway for me to have AWX pull both requirements? Thank you in advance!

---

<div class="post-metadata">

**Author:** ![chr00ted](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/chr00ted/32/2188_2.png) [@chr00ted](https://forum.ansible.com/u/chr00ted)\
**Post date:** [February 23, 2024, 9:52pm UTC](https://forum.ansible.com/t/awx-collections-requirements-yml/4029/2 "2024-02-23T21:52:33Z")

</div>

I know I can create a new Execution Environment that has community.general included, but it would be nice to have ansible just pull down both collections fortinet.fortios & community.general.

Any help would be appreciated.

---

<div class="post-metadata">

**Author:** ![chr00ted](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/chr00ted/32/2188_2.png) [@chr00ted](https://forum.ansible.com/u/chr00ted)\
**Post date:** [February 24, 2024, 2:15pm UTC](https://forum.ansible.com/t/awx-collections-requirements-yml/4029/3 "2024-02-24T14:15:20Z")

</div>

I got it working by changing my requirements.yml to look like:

"  
—  
collections:

- name: community.general
- name: fortinet.fortios  
version: 2.3.5  
source: [https://galaxy.ansible.com](https://galaxy.ansible.com/)  
"

---

<div class="post-metadata">

**Author:** ![akira6592](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/akira6592/32/222_2.png) [@akira6592](https://forum.ansible.com/u/akira6592)\
**Post date:** [February 25, 2024, 1:29am UTC](https://forum.ansible.com/t/awx-collections-requirements-yml/4029/4 "2024-02-25T01:29:28Z")

</div>

> version: 8.30

The specified version number may have been invalid.

There is no `community.general` version `8.30`. The correct version is `8.3.0`.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/ansible/original/1X/1882d9a01da5d8996a862359b0913cc568a39b84.svg) [@system](https://forum.ansible.com/u/system)\
**Post date:** [March 26, 2024, 1:30am UTC](https://forum.ansible.com/t/awx-collections-requirements-yml/4029/5 "2024-03-26T01:30:17Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
