1
0
forked from infra/ansible
infra/roles/mail/templates/certs.j2

28 lines
596 B
Django/Jinja

---
{{ mail_server }}:
- path: /etc/postfix/ssl/{{ mail_server }}.crt
user: postfix
group: postfix
perm: '400'
format: crt
notify: 'service postfix reload'
- path: /etc/postfix/ssl/{{ mail_server }}.key
user: postfix
group: postfix
perm: '400'
format: key
notify: 'service postfix reload'
- path: /etc/dovecot/ssl/{{ mail_server }}.crt
user: dovecot
group: dovecot
perm: '400'
format: crt
notify: 'service dovecot reload'
- path: /etc/dovecot/ssl/{{ mail_server }}.key
user: dovecot
group: dovecot
perm: '400'
format: key
notify: 'service dovecot reload'