Add additional role for mailserver
This commit is contained in:
parent
d0196c8c00
commit
bf692f4501
2 changed files with 18 additions and 0 deletions
15
roles/re2o_service_mailserver/tasks/main.yml
Normal file
15
roles/re2o_service_mailserver/tasks/main.yml
Normal file
|
@ -0,0 +1,15 @@
|
|||
---
|
||||
# Additional configuration for the re2o-service mailserver, you have to deploy the re2o_service first
|
||||
|
||||
- name: Create generated directory
|
||||
file:
|
||||
path: /var/local/re2o-services/mail-server/generated
|
||||
state: directory
|
||||
mode: "0755"
|
||||
owner: root
|
||||
group: root
|
||||
|
||||
- name: Deploy cron for re2o-mail-server
|
||||
template:
|
||||
src: cron.d/re2o-services-mail-server.j2
|
||||
dest: /etc/cron.d/re2o-services-mail-server
|
|
@ -0,0 +1,3 @@
|
|||
{{ ansible_managed | comment }}
|
||||
# Regenerate Postfix configuration Re2o API every 5 minutes
|
||||
*/5 * * * * root /usr/bin/python3 /var/local/re2o-services/mail-server/main.py
|
Loading…
Reference in a new issue