This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
ansible:ansible_presentation [2024/03/24 19:04] manu |
ansible:ansible_presentation [2024/04/18 00:21] (current) manu [Ansible Role directory structure] |
||
---|---|---|---|
Line 1: | Line 1: | ||
====== Ansible presentation ====== | ====== Ansible presentation ====== | ||
+ | |||
+ | ===== Ansible Architecture Diagram and Ansible components ===== | ||
+ | |||
+ | {{ansible:ansible02.png?500|}} | ||
===== Ansible Role directory structure ===== | ===== Ansible Role directory structure ===== | ||
- | {{ansible:ansible01.png?600|}} | + | {{ansible:ansible01.png?500|}} |
* **Tasks:** This directory contains one or more files with tasks . These file can also refer to files and templates without needing to provide the exact path. | * **Tasks:** This directory contains one or more files with tasks . These file can also refer to files and templates without needing to provide the exact path. | ||
Line 12: | Line 16: | ||
* **defaults:** This directory lets you define default variables for included or dependent role. | * **defaults:** This directory lets you define default variables for included or dependent role. | ||
* **meta:** This directory is used for dependency management such as dependency roles. | * **meta:** This directory is used for dependency management such as dependency roles. | ||
+ | |||
+ | Each directory must contain a main.yml file (or main.yaml or main) that contains the relevant | ||
+ | content for that directory. You can also use other YAML files in some directories to organize | ||
+ | your tasks or variables better. |