You've already forked ansible-role-directadmin
Fix Spam Folder Location
This commit is contained in:
@@ -24,6 +24,29 @@
|
||||
- "directadmin : Build Roundcube"
|
||||
- "directadmin : Rewrite confs"
|
||||
|
||||
- name: Setup Spam Folder Location
|
||||
ini_file:
|
||||
path: /usr/local/directadmin/conf/directadmin.conf
|
||||
section: null
|
||||
option: "{{ item.option }}"
|
||||
value: "{{ item.value }}"
|
||||
backup: false
|
||||
state: present
|
||||
no_extra_spaces: true
|
||||
create: true
|
||||
loop:
|
||||
- name: Don't Prefix Spam under INBOX
|
||||
option: spam_inbox_prefix
|
||||
value: 0
|
||||
- name: Set Spam prefix
|
||||
option: spam_inbox_prefix_name
|
||||
value: Junk
|
||||
loop_control:
|
||||
label: "{{ item.name }}"
|
||||
notify:
|
||||
- "directadmin : Build Roundcube"
|
||||
- "directadmin : Rewrite confs"
|
||||
|
||||
- name: Ensure custom configs are present
|
||||
ini_file:
|
||||
path: /usr/local/directadmin/conf/directadmin.conf
|
||||
|
||||
Reference in New Issue
Block a user