The Site playbook

The ~/.local/share/debops/debops/ansible/playbooks/site.yml connects all debops roles.

Include own roles/playbooks

If you created a DebOps project directory and added your own role inside ansible/roles/ and the playbook file inside ansible/playbooks/ you can override the site.yml and hook your role up into DebOps:


- include: '{{ lookup("ENV", "HOME") + "/.local/share/debops/debops/ansible/playbooks/site.yml" }}'
- include: your_role.yml


- name: Manage the your specific setup
  hosts: [ 'debops_all_hosts' ]

     - role: ansible.your_role
       tags: [ 'role::your_role' ]

Note that '{ lookup("ENV", "HOME") + "/.local/share/debops/debops/ansible/playbooks/site.yml" }' only works on Linux. For other systems you can work with a symlink to the correct destination.