Getting started

An example playbook which uses debops.postfix role:


- name: Manage Postfix instance
  hosts: all

    - role: debops.postfix
      tags: postfix

This playbook should install postfix package along with its dependencies, and configure the service with default values generated by Ansible.

Ansible tags

You can use Ansible --tags or --skip-tags parameters to limit what tasks are performed during Ansible run. This can be used after host is first configured to speed up playbook execution, when you are sure that most of the configuration has not been changed.

Available role tags:

Main role tag, should be used in the playbook to execute all of the role tasks as well as role dependencies.
This tag specifies which tasks are defined in role dependencies. You can use this to omit them using --skip-tags parameter.
Execute all debops.postfix role dependencies in its context.
Run debops.ferm dependent role in debops.postfix context.