You've already forked ansible-role-directadmin
Support Easy Spam Fighter configuration
This commit is contained in:
@@ -8,6 +8,9 @@
|
||||
- name: Import Exim configuration
|
||||
import_tasks: mail/exim.yml
|
||||
|
||||
- name: Import ESF configuration
|
||||
import_tasks: mail/esf.yml
|
||||
|
||||
- name: Ensure DirectAdmin Custom Templates exists
|
||||
file:
|
||||
path: /usr/local/directadmin/data/templates/custom
|
||||
|
||||
13
tasks/config/mail/esf.yml
Normal file
13
tasks/config/mail/esf.yml
Normal file
@@ -0,0 +1,13 @@
|
||||
|
||||
- name: Ensure custom ESF directory exists
|
||||
file:
|
||||
path: /etc/exim.easy_spam_fighter
|
||||
state: directory
|
||||
|
||||
- name: Apply ESF Configurations
|
||||
template:
|
||||
src: templates/exim/exim.easy_spam_fighter/variables.conf.custom.j2
|
||||
dest: /etc/exim.easy_spam_fighter/variables.conf.custom
|
||||
mode: 0600
|
||||
notify:
|
||||
- "directadmin : Restart Exim"
|
||||
Reference in New Issue
Block a user