From 9c61ef10d19a1a2195b7c74d92343558543e654e Mon Sep 17 00:00:00 2001 From: Jeff Geerling Date: Fri, 16 Aug 2019 09:34:45 -0500 Subject: [PATCH] Fix typo and uses more common role syntax in usage examples (#60165) * Fix typo and use import_role in examples --- .../docsite/rst/dev_guide/collections_tech_preview.rst | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/docs/docsite/rst/dev_guide/collections_tech_preview.rst b/docs/docsite/rst/dev_guide/collections_tech_preview.rst index d902f156b4e..58d18a301d8 100644 --- a/docs/docsite/rst/dev_guide/collections_tech_preview.rst +++ b/docs/docsite/rst/dev_guide/collections_tech_preview.rst @@ -394,8 +394,9 @@ This works for roles or any type of plugin distributed within the collection: - hosts: all tasks: - - include_role: - name : my_namespace.my_collection.role1 + - import_role: + name: my_namespace.my_collection.role1 + - my_namespace.mycollection.mymodule: option1: value @@ -403,7 +404,7 @@ This works for roles or any type of plugin distributed within the collection: msg: '{{ lookup("my_namespace.my_collection.lookup1", 'param1')| my_namespace.my_collection.filter1 }}' -To avoid a lot of typing, you can use the ``collections`` keyword added in Ansbile 2.8: +To avoid a lot of typing, you can use the ``collections`` keyword added in Ansible 2.8: .. code-block:: yaml @@ -412,8 +413,9 @@ To avoid a lot of typing, you can use the ``collections`` keyword added in Ansbi collections: - my_namespace.my_collection tasks: - - include_role: + - import_role: name: role1 + - mymodule: option1: value