Skip to content

Commit d891f26

Browse files
authored
Use meta/collection-requirements.yml for collection dependencies (#267)
There is no way for a role to automatically require collections for module/plugin dependencies. Use the non-standard file meta/collection-requirements.yml for this. Note that meta/requirements.yml is supposed to be a list of roles only, in the format described at https://docs.ansible.com/ansible/latest/galaxy/user_guide.html#installing-multiple-roles-from-multiple-files
1 parent 8911e83 commit d891f26

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

README.md

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,13 @@ As of now, the role supports managing file systems and mount entries on
1212
Requirements
1313
------------
1414

15-
See `meta/requirements.yml` for the requirements. You must install the
16-
requirements before using this role:
15+
The role requires the `mount` module from `ansible.posix`. If you are using
16+
`ansible-core`, you must install the `ansible.posix` collection.
1717
```
18-
ansible-galaxy collection install -vv -r meta/requirements.yml
18+
ansible-galaxy collection install -vv -r meta/collection-requirements.yml
1919
```
20-
See
21-
https://docs.ansible.com/ansible/latest/galaxy/user_guide.html#using-meta-requirements-yml
22-
for more information.
20+
If you are using Ansible Engine 2.9, or are using an Ansible bundle which
21+
includes these collections/modules, you should have to do nothing.
2322

2423
Role Variables
2524
--------------
File renamed without changes.

0 commit comments

Comments
 (0)