User Tools

Site Tools


ansible:ansible_presentation

This is an old revision of the document!


Ansible presentation

Ansible Role directory structure

  • 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.
  • Handlers: Add all your handlers in this directory
  • Files: This directory contains all your static files and scripts that might be copied or executed to remote machine.
  • Templates: This directory is reserved for templates that generate files on remote hosts.
  • Vars: You define variables inside this directory and then can be referenced elsewhere in 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.
ansible/ansible_presentation.1711303465.txt.gz · Last modified: 2024/03/24 19:04 by manu