Add library in role directory structure (#67030)
* Add library directory to the list of directories in a role
This commit is contained in:
parent
4967224248
commit
29edcdcf5b
1 changed files with 2 additions and 0 deletions
|
@ -24,6 +24,7 @@ An Ansible role has a defined directory structure with seven main standard direc
|
||||||
common/
|
common/
|
||||||
tasks/
|
tasks/
|
||||||
handlers/
|
handlers/
|
||||||
|
library/
|
||||||
files/
|
files/
|
||||||
templates/
|
templates/
|
||||||
vars/
|
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.
|
- ``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.
|
- ``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.
|
- ``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).
|
- ``vars/main.yml`` - other variables for the role (see :ref:`playbooks_variables` for more information).
|
||||||
- ``files/main.yml`` - files that the role deploys.
|
- ``files/main.yml`` - files that the role deploys.
|
||||||
|
|
Loading…
Reference in a new issue