Skip to content

Commit

Permalink
Use meta/collection-requirements.yml for collection dependencies (#110)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
richm authored May 6, 2022
1 parent 3e88e25 commit d09046b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,14 @@ network port type definitions.

## Requirements

See `meta/requirements.yml` for the requirements. You must install the
requirements before using this role:
The role requires some SELinux modules. If you are using `ansible-core`, you must
get these from the `ansible.posix` and `community.general` collections. Use the
file `meta/collection-requirements.yml` to install these:
```
ansible-galaxy collection install -vv -r meta/requirements.yml
ansible-galaxy collection install -vv -r meta/collection-requirements.yml
```
See
https://docs.ansible.com/ansible/latest/galaxy/user_guide.html#using-meta-requirements-yml
for more information.
If you are using Ansible Engine 2.9, or are using an Ansible bundle which
includes these collections/modules, you should have to do nothing.

### Modules provided by this repository

Expand Down
File renamed without changes.

0 comments on commit d09046b

Please sign in to comment.