vn-ansible/collections/README.md

32 lines
966 B
Markdown

# 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)
To list installed collections, run `ansible-galaxy collection list` (inside awx operator container)
# Install multiple collections with a requirements file
[Install-multiple](https://docs.ansible.com/ansible/devel/collections_guide/collections_installing.html#install-multiple-collections-with-a-requirements-file)