Difference between revisions of "Roles/ (Ansible)"
Jump to navigation
Jump to search
(Created page with " <pre> roles/ common/ # this hierarchy represents a "role" tasks/ # main.yml # <-- tasks file can include smaller files...") |
|||
(2 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
+ | {{lc}} | ||
− | + | https://docs.ansible.com/ansible/latest/playbook_guide/playbooks_reuse_roles.html#role-directory-structure | |
<pre> | <pre> | ||
roles/ | roles/ | ||
Line 27: | Line 28: | ||
fooapp/ # "" | fooapp/ # "" | ||
</pre> | </pre> | ||
+ | |||
+ | |||
+ | == See also == | ||
+ | * {{Ansible roles}} | ||
+ | |||
+ | [[Category:Ansible]] |
Latest revision as of 17:51, 6 January 2023
roles/ common/ # this hierarchy represents a "role" tasks/ # main.yml # <-- tasks file can include smaller files if warranted handlers/ # main.yml # <-- handlers file templates/ # <-- files for use with the template resource ntp.conf.j2 # <------- templates end in .j2 files/ # bar.txt # <-- files for use with the copy resource foo.sh # <-- script files for use with the script resource vars/ # main.yml # <-- variables associated with this role defaults/ # main.yml # <-- default lower priority variables for this role meta/ # main.yml # <-- role dependencies library/ # roles can also include custom modules module_utils/ # roles can also include custom module_utils lookup_plugins/ # or other types of plugins, like lookup in this case webtier/ # same kind of structure as "common" was above, done for the webtier role monitoring/ # "" fooapp/ # ""
See also[edit]
Advertising: