From f5ce5e4a78d9264c53b2ce91b5a8b28e6cadc10b Mon Sep 17 00:00:00 2001 From: Jakub Holy Date: Wed, 12 Feb 2014 14:06:59 +0100 Subject: [PATCH] mention that include works with addtional task files Mention we can include roles/x/tasks/anothertasks.yml with `include anothertasks.yml` within the role's `main.yml` as this is not obvious from the documentation --- docsite/rst/playbooks_roles.rst | 1 + 1 file changed, 1 insertion(+) diff --git a/docsite/rst/playbooks_roles.rst b/docsite/rst/playbooks_roles.rst index bb126f8cf81..d01efe760f8 100644 --- a/docsite/rst/playbooks_roles.rst +++ b/docsite/rst/playbooks_roles.rst @@ -193,6 +193,7 @@ This designates the following behaviors, for each role 'x': - Any copy tasks can reference files in roles/x/files/ without having to path them relatively or absolutely - Any script tasks can reference scripts in roles/x/files/ without having to path them relatively or absolutely - Any template tasks can reference files in roles/x/templates/ without having to path them relatively or absolutely +- Any include tasks can reference files in roles/x/tasks/ without having to path them relatively or absolutely In Ansible 1.4 and later you can configure a roles_path to search for roles. Use this to check all of your common roles out to one location, and share them easily between multiple playbook projects. See :doc:`intro_configuration` for details about how to set this up in ansible.cfg.