clarify FQCN needs for plugins (#58870)

* clarify FQCN requirement, fix example
pull/58911/head
Sandra McCann 5 years ago committed by Alicia Cozine
parent c2469648e4
commit e5a1d85092

@ -297,6 +297,8 @@ This works for roles or any type of plugin distributed within the collection:
tasks:
- include_role:
name : myname.mycol.role1
- myname.mycol.mymodule:
option1: value
- debug:
msg: '{{ lookup("myname.mycol.lookup1", 'param1')| myname.mycol.filter1 }}'
@ -313,8 +315,11 @@ To avoid a lot of typing, you can use the ``collections`` keyword added in Ansbi
tasks:
- include_role:
name: role1
- mymodule:
option1: value
- debug:
msg: '{{ lookup("lookup1", 'param1')|filter1 }}'
msg: '{{ lookup("myname.mycol.lookup1", 'param1')| myname.mycol.filter1 }}'
This keyword creates a 'search path' for non namespaced plugin references. It does not import roles or anything else.
Notice that you still need the FQCN for non-action or module plugins.

Loading…
Cancel
Save