vn-ansible/collections/README.md

35 lines
877 B
Markdown
Raw Normal View History

## Collections
2023-10-17 07:03:45 +00:00
2024-09-23 14:32:28 +00:00
The purpose of collections is get more modules and plugins to use in ansible.
2023-10-17 07:03:45 +00:00
Collections are supported by Ansible community.
# Install collections
2024-09-23 14:32:28 +00:00
In *awx-operator* container, execute:
2023-10-17 07:03:45 +00:00
```
ansible-galaxy collection install -r requirements.yml
```
Where `requirements.yml` we need to specify the list of collections that we
want to install:
2023-10-17 07:03:45 +00:00
```
collections:
- name: community.general
```
2024-09-23 14:32:28 +00:00
# Collection index
* https://docs.ansible.com/ansible/latest/collections/index.html
2023-10-17 07:03:45 +00:00
# List collections
To list installed collections, run `ansible-galaxy collection list` (inside awx
operator container)
2024-09-23 14:32:28 +00:00
* https://docs.ansible.com/ansible/latest/collections_guide/collections_listing.html
# Install multiple collections
* https://docs.ansible.com/ansible/devel/collections_guide/collections_installing.html#install-multiple-collections-with-a-requirements-file