mirror of
https://github.com/golderweb/ansible-dotqmail.git
synced 2026-04-18 04:16:31 +02:00
Prepare defaults and vars
Especially to be conform to RFC 2142 there are some predefinitions needed Also we need to make sure that those always are applied except they are explicitly overwritten https://tools.ietf.org/html/rfc2142
This commit is contained in:
@@ -2,3 +2,12 @@
|
|||||||
# defaults file for dotqmail
|
# defaults file for dotqmail
|
||||||
dotqmail_prefix : ".qmail-"
|
dotqmail_prefix : ".qmail-"
|
||||||
|
|
||||||
|
# Set root dotqmail file to maildir by default
|
||||||
|
dotqmail_rootfile: ["./Maildir/"]
|
||||||
|
|
||||||
|
# Those must be always present according to rfc2142
|
||||||
|
# @see https://tools.ietf.org/html/rfc2142
|
||||||
|
dotqmail_default_files:
|
||||||
|
"abuse": ["{{ansible_env.USER}}"]
|
||||||
|
"hostmaster": ["{{ansible_env.USER}}"]
|
||||||
|
"postmaster": ["{{ansible_env.USER}}"]
|
||||||
|
|||||||
@@ -39,6 +39,8 @@
|
|||||||
|
|
||||||
# For the other files the we get a key-value pair with the dotqmail extention
|
# For the other files the we get a key-value pair with the dotqmail extention
|
||||||
# as key and the list of lines as value while looping over dotqmail_files
|
# as key and the list of lines as value while looping over dotqmail_files
|
||||||
|
# (which is a combination of dotqmail_config_files from inventory over
|
||||||
|
# dotqmail_default_files from role defaults)
|
||||||
- name: generate/update other dotqmail-files
|
- name: generate/update other dotqmail-files
|
||||||
template:
|
template:
|
||||||
src: templates/dotqmail.j2
|
src: templates/dotqmail.j2
|
||||||
|
|||||||
@@ -1,2 +1,9 @@
|
|||||||
---
|
---
|
||||||
# vars file for dotqmail
|
# vars file for dotqmail
|
||||||
|
|
||||||
|
# combine dotqmail_default_files from role's default with configuration
|
||||||
|
# Will make sure that every dotqmail file from default config will be present
|
||||||
|
# the content hence can be adjusted by defining the extention in e.g. inventory
|
||||||
|
# which will be prefered
|
||||||
|
# This is done to be conform with rfc2142
|
||||||
|
dotqmail_files: "{{dotqmail_default_files|combine(dotqmail_config_files)}}"
|
||||||
|
|||||||
Reference in New Issue
Block a user