summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuilhem Moulin <guilhem@fripost.org>2020-05-21 03:42:52 +0200
committerGuilhem Moulin <guilhem@fripost.org>2020-05-21 03:42:54 +0200
commit6fb829e49d421de9abac41325f5089357bf27f82 (patch)
tree0223d7738c877ad13c103ca3130f59c992ce1d50
parent6d1daa0424c168eae4bfa9f6772add3f77ec506f (diff)
Postfix: Install -lmdb in all roles using db=lmdb.
And drop -ldap from all roles other than MX. -lmdb is included in roles/common but it can be helpful to have it individual roles as well as they can be run individually.
-rw-r--r--roles/IMAP/tasks/mda.yml2
-rw-r--r--roles/MSA/tasks/main.yml1
-rw-r--r--roles/lists/tasks/mail.yml2
-rw-r--r--roles/out/tasks/main.yml6
4 files changed, 8 insertions, 3 deletions
diff --git a/roles/IMAP/tasks/mda.yml b/roles/IMAP/tasks/mda.yml
index f705fe7..0e8690d 100644
--- a/roles/IMAP/tasks/mda.yml
+++ b/roles/IMAP/tasks/mda.yml
@@ -3,7 +3,7 @@
vars:
packages:
- postfix
- - postfix-ldap
+ - postfix-lmdb
- name: Configure Postfix
template: src=etc/postfix/{{ item }}.j2
diff --git a/roles/MSA/tasks/main.yml b/roles/MSA/tasks/main.yml
index 2eee925..4b38974 100644
--- a/roles/MSA/tasks/main.yml
+++ b/roles/MSA/tasks/main.yml
@@ -3,6 +3,7 @@
vars:
packages:
- postfix
+ - postfix-lmdb
- postfix-pcre
- postfix-policyd-spf-python
diff --git a/roles/lists/tasks/mail.yml b/roles/lists/tasks/mail.yml
index 44b96e5..2821b02 100644
--- a/roles/lists/tasks/mail.yml
+++ b/roles/lists/tasks/mail.yml
@@ -3,7 +3,7 @@
vars:
packages:
- postfix
- - postfix-ldap
+ - postfix-lmdb
- name: Configure Postfix
template: src=etc/postfix/{{ item }}.j2
diff --git a/roles/out/tasks/main.yml b/roles/out/tasks/main.yml
index 0e64443..48c162a 100644
--- a/roles/out/tasks/main.yml
+++ b/roles/out/tasks/main.yml
@@ -1,5 +1,9 @@
- name: Install Postfix
- apt: pkg=postfix
+ apt: pkg={{ packages }}
+ vars:
+ packages:
+ - postfix
+ - postfix-lmdb
- name: Configure Postfix
template: src=etc/postfix/{{ item }}.j2