forked from evolix/ansible-roles
postfix: move spam.sh script from amavis role
This commit is contained in:
parent
10ff2747e2
commit
82cf150c05
|
@ -17,27 +17,3 @@
|
||||||
notify: restart amavis
|
notify: restart amavis
|
||||||
tags:
|
tags:
|
||||||
- amavis
|
- amavis
|
||||||
|
|
||||||
- name: copy spam.sh script
|
|
||||||
copy:
|
|
||||||
src: spam.sh
|
|
||||||
dest: /usr/share/scripts/spam.sh
|
|
||||||
mode: "0700"
|
|
||||||
tags:
|
|
||||||
- amavis
|
|
||||||
|
|
||||||
- name: enable spam.sh cron
|
|
||||||
lineinfile:
|
|
||||||
dest: /etc/cron.d/spam
|
|
||||||
line: "42 * * * * /usr/share/scripts/spam.sh"
|
|
||||||
create: yes
|
|
||||||
state: present
|
|
||||||
mode: "0640"
|
|
||||||
tags:
|
|
||||||
- amavis
|
|
||||||
|
|
||||||
- name: update antispam list
|
|
||||||
command: /usr/share/scripts/spam.sh
|
|
||||||
changed_when: false
|
|
||||||
tags:
|
|
||||||
- amavis
|
|
||||||
|
|
|
@ -1,10 +1,10 @@
|
||||||
---
|
---
|
||||||
dependencies:
|
dependencies:
|
||||||
- { role: ldap, ldap_schema: 'cn4evolix.ldif' }
|
- { role: ldap, ldap_schema: 'cn4evolix.ldif' }
|
||||||
- { role: postfix, postfix_packmail: True, postfix_force_main_cf: True, postfix_slow_transport_include: True }
|
|
||||||
- { role: amavis }
|
- { role: amavis }
|
||||||
- { role: spamassasin }
|
- { role: spamassasin }
|
||||||
- { role: clamav }
|
- { role: clamav }
|
||||||
|
- { role: postfix, postfix_packmail: True, postfix_force_main_cf: True, postfix_slow_transport_include: True }
|
||||||
- { role: dovecot }
|
- { role: dovecot }
|
||||||
- { role: apache }
|
- { role: apache }
|
||||||
- { role: php, php_apache_enable: True }
|
- { role: php, php_apache_enable: True }
|
||||||
|
|
|
@ -120,6 +120,33 @@
|
||||||
tags:
|
tags:
|
||||||
- postfix
|
- postfix
|
||||||
|
|
||||||
|
- name: copy spam.sh script
|
||||||
|
copy:
|
||||||
|
src: spam.sh
|
||||||
|
dest: /usr/share/scripts/spam.sh
|
||||||
|
mode: "0700"
|
||||||
|
when: postfix_packmail == True
|
||||||
|
tags:
|
||||||
|
- postfix
|
||||||
|
|
||||||
|
- name: enable spam.sh cron
|
||||||
|
lineinfile:
|
||||||
|
dest: /etc/cron.d/spam
|
||||||
|
line: "42 * * * * /usr/share/scripts/spam.sh"
|
||||||
|
create: yes
|
||||||
|
state: present
|
||||||
|
mode: "0640"
|
||||||
|
when: postfix_packmail == True
|
||||||
|
tags:
|
||||||
|
- postfix
|
||||||
|
|
||||||
|
- name: update antispam list
|
||||||
|
command: /usr/share/scripts/spam.sh
|
||||||
|
changed_when: false
|
||||||
|
when: postfix_packmail == True
|
||||||
|
tags:
|
||||||
|
- postfix
|
||||||
|
|
||||||
- include: slow_transport.yml
|
- include: slow_transport.yml
|
||||||
when: postfix_slow_transport_include
|
when: postfix_slow_transport_include
|
||||||
tags:
|
tags:
|
||||||
|
|
Loading…
Reference in a new issue