docs: fix path to roles' meta/main.yml file (#67408)
This commit is contained in:
parent
b625b430f1
commit
0485ce9d12
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue