mirror of
https://github.com/FAUSheppy/no-secrets-athq-ansible
synced 2025-12-10 03:08:32 +01:00
feat: backup+mail
This commit is contained in:
@@ -2,15 +2,16 @@
|
||||
apt:
|
||||
pkg:
|
||||
- postfix
|
||||
- dovecot
|
||||
- dovecot-core
|
||||
- dovecot-imapd
|
||||
- spamassassin
|
||||
- nginx
|
||||
state: present
|
||||
|
||||
- name: Deploy Postfix config
|
||||
file:
|
||||
src: {{ item }}
|
||||
dest: /etc/postfix/{{ item }}
|
||||
copy:
|
||||
src: "{{ item }}"
|
||||
dest: "/etc/postfix/{{ item }}"
|
||||
with_items:
|
||||
- dynamicmaps.cf
|
||||
- enabled_senders
|
||||
@@ -24,21 +25,21 @@
|
||||
notify: restart postfix
|
||||
|
||||
- name: Deploy Dovecot config
|
||||
file:
|
||||
src: {{ item }}
|
||||
dest: /etc/dovecot/{{ item }}
|
||||
copy:
|
||||
src: "{{ item }}"
|
||||
dest: "/etc/dovecot/{{ item }}"
|
||||
with_items:
|
||||
- dovecot.conf
|
||||
notify: restart dovecot
|
||||
|
||||
- name: Deploy nginx-config
|
||||
file:
|
||||
copy:
|
||||
src: nginx.conf
|
||||
dest: /etc/nginx/nginx.conf
|
||||
notify: restart nginx
|
||||
|
||||
- name: Deploy nginx-config (page)
|
||||
file:
|
||||
copy:
|
||||
src: nginx_default.conf
|
||||
dest: /etc/nginx/sites-available/default
|
||||
notify: restart nginx
|
||||
|
||||
Reference in New Issue
Block a user