Ansible Roles Cheat Sheet

From WikiOD

Here is the cheatsheat of Ansible Roles and basic guide on how to use Ansible Roles

Structure[edit | edit source]

roles/
  common/
    tasks/
    handlers/
    files/              # 'copy' will refer to this
    templates/          # 'template' will refer to this
    meta/               # Role dependencies here
    vars/
    defaults/
      main.yml

References[edit | edit source]

Credit:rstacruz