summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorJonas DOREL <jonas@dorel.me>2020-02-11 21:30:59 +0100
committerGitHub <noreply@github.com>2020-02-11 14:30:59 -0600
commit29edcdcf5b41702e69741d3b068353be2c81ba51 (patch)
treedbb9d475b7c896a2cefcf64475b17b47751e0447 /docs
parent4967224248b075b56e598d5477b1e975916ddb0b (diff)
downloadansible-29edcdcf5b41702e69741d3b068353be2c81ba51.tar.gz
Add library in role directory structure (#67030)
* Add library directory to the list of directories in a role
Diffstat (limited to 'docs')
-rw-r--r--docs/docsite/rst/user_guide/playbooks_reuse_roles.rst2
1 files changed, 2 insertions, 0 deletions
diff --git a/docs/docsite/rst/user_guide/playbooks_reuse_roles.rst b/docs/docsite/rst/user_guide/playbooks_reuse_roles.rst
index 89f350c993..57efe7bce0 100644
--- a/docs/docsite/rst/user_guide/playbooks_reuse_roles.rst
+++ b/docs/docsite/rst/user_guide/playbooks_reuse_roles.rst
@@ -24,6 +24,7 @@ An Ansible role has a defined directory structure with seven main standard direc
common/
tasks/
handlers/
+ library/
files/
templates/
vars/
@@ -38,6 +39,7 @@ Each directory within a role must contain a ``main.yml`` file with relevant cont
- ``tasks/main.yml`` - the main list of tasks that the role executes.
- ``handlers/main.yml`` - handlers, which may be used within or outside this role.
+- ``library/my_module.py`` - modules, which may be used within this role (see :ref:`embedding_modules_and_plugins_in_roles` for more information).
- ``defaults/main.yml`` - default variables for the role (see :ref:`playbooks_variables` for more information). These variables have the lowest priority of any variables available, and can be easily overridden by any other variable, including inventory variables.
- ``vars/main.yml`` - other variables for the role (see :ref:`playbooks_variables` for more information).
- ``files/main.yml`` - files that the role deploys.