From cb064303cc65574cc0bbed506fa645b347240b3d Mon Sep 17 00:00:00 2001 From: Rafael Guterres Jeffman Date: Sat, 9 Mar 2024 15:45:30 -0300 Subject: [PATCH] upstream ci: Fix ansible-lint errors due to missing collections When running ansible-lint it tries to load and syntax check the playbooks it evaluates, and if any of the modules used in the playbooks can't be found, it fails with a fatal error, as if there was a syntax error. By adding a 'requirements.yml' file with all the collections that are used in any playbook (be it a runtime, test, or development dependency), forces ansible-lint to install and use the collections in its virtual environment, successfully parsing the playbook files. See more at https://github.com/ansible/ansible-lint/discussions/4048 and https://github.com/ansible/ansible-lint/pull/4049. --- requirements.yml | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 requirements.yml diff --git a/requirements.yml b/requirements.yml new file mode 100644 index 000000000..476c29c13 --- /dev/null +++ b/requirements.yml @@ -0,0 +1,7 @@ +# These collections are only required for testing and development. +# You should be able to use ansible-freeipa without installing these. +--- +collections: + - name: ansible.posix + - name: community.docker + - name: containers.podman