mirror of
https://github.com/FAUSheppy/no-secrets-athq-ansible
synced 2025-12-10 05:48:33 +01:00
feat: backup + mail stuff
This commit is contained in:
44
roles/mail/tasks/main.yaml
Normal file
44
roles/mail/tasks/main.yaml
Normal file
@@ -0,0 +1,44 @@
|
||||
- name: Install Mail stuff
|
||||
apt:
|
||||
pkg:
|
||||
- postfix
|
||||
- dovecot
|
||||
- spamassassin
|
||||
- nginx
|
||||
state: present
|
||||
|
||||
- name: Deploy Postfix config
|
||||
file:
|
||||
src: {{ item }}
|
||||
dest: /etc/postfix/{{ item }}
|
||||
with_items:
|
||||
- dynamicmaps.cf
|
||||
- enabled_senders
|
||||
- main.cf
|
||||
- master.cf
|
||||
- relocated
|
||||
- sender_blacklist
|
||||
- tls_policy
|
||||
- transport
|
||||
- virtual
|
||||
notify: restart postfix
|
||||
|
||||
- name: Deploy Dovecot config
|
||||
file:
|
||||
src: {{ item }}
|
||||
dest: /etc/dovecot/{{ item }}
|
||||
with_items:
|
||||
- dovecot.conf
|
||||
notify: restart dovecot
|
||||
|
||||
- name: Deploy nginx-config
|
||||
file:
|
||||
src: nginx.conf
|
||||
dest: /etc/nginx/nginx.conf
|
||||
notify: restart nginx
|
||||
|
||||
- name: Deploy nginx-config (page)
|
||||
file:
|
||||
src: nginx_default.conf
|
||||
dest: /etc/nginx/sites-available/default
|
||||
notify: restart nginx
|
||||
Reference in New Issue
Block a user