docs: fix path to roles' meta/main.yml file (#67408)

This commit is contained in:
Ken Dreyer 2020-02-14 09:10:33 -07:00 committed by GitHub
parent b625b430f1
commit 0485ce9d12
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -133,11 +133,11 @@ The ``collections`` keyword lets you define a list of collections that your role
Using ``collections`` in roles
------------------------------
Within a role, you can control which collections Ansible searches for the tasks inside the role using the ``collections`` keyword in the role's ``metadata/main.yml``. Ansible will use the collections list defined inside the role even if the playbook that calls the role defines different collections in a separate ``collections`` keyword entry. Roles defined inside a collection always implicitly search their own collection first, so you don't need to use the ``collections`` keyword to access modules, actions, or other roles contained in the same collection.
Within a role, you can control which collections Ansible searches for the tasks inside the role using the ``collections`` keyword in the role's ``meta/main.yml``. Ansible will use the collections list defined inside the role even if the playbook that calls the role defines different collections in a separate ``collections`` keyword entry. Roles defined inside a collection always implicitly search their own collection first, so you don't need to use the ``collections`` keyword to access modules, actions, or other roles contained in the same collection.
.. code-block:: yaml
# myrole/metadata/main.yml
# myrole/meta/main.yml
collections:
- my_namespace.first_collection
- my_namespace.second_collection