Getting started¶
Default configuration¶
The role will check if Postfix was installed on a host by looking for specific
Ansible fact defined by the debops.postfix role. If Postfix is detected,
debops.saslauthd
will automatically configure a smtpd
authentication
service which can be used by Postfix.
Example inventory¶
To install and configure Cyrus SASL daemon on a host, the host needs to be
present in the [debops_service_saslauthd]
Ansible inventory group.
[debops_service_saslauthd]
hostname
Example playbook¶
If you are using this role without DebOps, here's an example Ansible playbook
that uses the debops.saslauthd
role:
---
- name: Manage Cyrus SASL authentication service
collections: [ 'debops.debops', 'debops.roles01',
'debops.roles02', 'debops.roles03' ]
hosts: [ 'debops_service_saslauthd' ]
become: True
environment: '{{ inventory__environment | d({})
| combine(inventory__group_environment | d({}))
| combine(inventory__host_environment | d({})) }}'
roles:
- role: python
tags: [ 'role::python', 'skip::python', 'role::ldap' ]
python__dependent_packages3:
- '{{ ldap__python__dependent_packages3 }}'
python__dependent_packages2:
- '{{ ldap__python__dependent_packages2 }}'
- role: ldap
tags: [ 'role::ldap', 'skip::ldap' ]
ldap__dependent_tasks:
- '{{ saslauthd__ldap__dependent_tasks }}'
- role: saslauthd
tags: [ 'role::saslauthd', 'skip::saslauthd' ]