From d09046bfd31ca3251535a563dc5d853c84b6add3 Mon Sep 17 00:00:00 2001 From: Richard Megginson Date: Fri, 6 May 2022 11:55:18 -0600 Subject: [PATCH] Use meta/collection-requirements.yml for collection dependencies (#110) 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 --- README.md | 12 ++++++------ ...{requirements.yml => collection-requirements.yml} | 0 2 files changed, 6 insertions(+), 6 deletions(-) rename meta/{requirements.yml => collection-requirements.yml} (100%) diff --git a/README.md b/README.md index e3f135f..581b5e0 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/meta/requirements.yml b/meta/collection-requirements.yml similarity index 100% rename from meta/requirements.yml rename to meta/collection-requirements.yml