2023-10-17 07:03:45 +00:00
|
|
|
# Collections
|
|
|
|
|
|
|
|
The porpouse of collections is get more modules and plugins to use in ansible.
|
|
|
|
|
|
|
|
Collections are supported by Ansible community.
|
|
|
|
|
|
|
|
# Install collections
|
|
|
|
|
|
|
|
In AWX-operator container , execute:
|
|
|
|
```
|
|
|
|
ansible-galaxy collection install -r requirements.yml
|
|
|
|
```
|
|
|
|
|
|
|
|
Where `requirements.yml` we need to specify the list of collections that we want to install:
|
|
|
|
|
|
|
|
```
|
|
|
|
collections:
|
|
|
|
- name: community.general
|
|
|
|
```
|
|
|
|
|
|
|
|
# Collection index:
|
|
|
|
[Index-Ansible-collections](https://docs.ansible.com/ansible/latest/collections/index.html)
|
|
|
|
|
|
|
|
# List collections
|
|
|
|
[Listing-collections](https://docs.ansible.com/ansible/latest/collections_guide/collections_listing.html)
|
|
|
|
|
2023-10-17 07:06:23 +00:00
|
|
|
To list installed collections, run `ansible-galaxy collection list` (inside awx operator container)
|
|
|
|
|