You've already forked ansible-role-directadmin
Initial commit
This commit is contained in:
19
tasks/config/users.yml
Normal file
19
tasks/config/users.yml
Normal file
@@ -0,0 +1,19 @@
|
||||
---
|
||||
# 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"
|
||||
Reference in New Issue
Block a user