You've already forked ansible-role-directadmin
19 lines
642 B
YAML
19 lines
642 B
YAML
---
|
|
# This file contains configuration actions related to Users
|
|
- name: Enable spamassassin on user create
|
|
copy:
|
|
src: directadmin/scripts/custom/user_create_post.sh
|
|
dest: /usr/local/directadmin/scripts/custom/user_create_post.sh
|
|
mode: "0755"
|
|
|
|
- name: Set Spam defaults on domain create
|
|
copy:
|
|
dest: /usr/local/directadmin/scripts/custom/domain_create_post.sh
|
|
content: |
|
|
#!/bin/sh
|
|
F=/etc/virtual/$domain/filter.conf
|
|
if [ -e $F ]; then
|
|
echo "where=userspamfolder" >> $F
|
|
echo "action=rewrite&value=filter&user=$username" >> /usr/local/directadmin/data/task.queue
|
|
fi
|
|
mode: "0755" |