spamassassin-razor: Add razor configurations
This commit is contained in:
parent
49bb954ec6
commit
acdb465539
1 changed files with 18 additions and 0 deletions
|
@ -4,4 +4,22 @@
|
||||||
package:
|
package:
|
||||||
name: perl-Razor-Agent
|
name: perl-Razor-Agent
|
||||||
state: installed
|
state: installed
|
||||||
|
|
||||||
|
- name: create config directory
|
||||||
|
file:
|
||||||
|
path: /var/lib/razor
|
||||||
|
state: directory
|
||||||
|
mode: 0755
|
||||||
|
owner: root
|
||||||
|
group: "{{ ansible_wheel }}"
|
||||||
|
|
||||||
|
- name: create identity
|
||||||
|
command: razor-admin -home=/var/lib/razor -register
|
||||||
|
args:
|
||||||
|
creates: /var/lib/razor/identity
|
||||||
|
|
||||||
|
- name: create config
|
||||||
|
command: razor-admin -home=/var/lib/razor -create
|
||||||
|
args:
|
||||||
|
creates: /var/lib/razor/razor-agent.conf
|
||||||
notify: restart spamassassin
|
notify: restart spamassassin
|
||||||
|
|
Loading…
Add table
Reference in a new issue