diff --git a/roles/common/files/etc/letsencrypt/renewal-hooks/update-postfix b/roles/common/files/etc/letsencrypt/renewal-hooks/update-postfix new file mode 100644 index 0000000..87b4a1a --- /dev/null +++ b/roles/common/files/etc/letsencrypt/renewal-hooks/update-postfix @@ -0,0 +1,4 @@ +#!/bin/bash + +/bin/systemctl restart postfix +/bin/systemctl restart dovecot diff --git a/roles/common/tasks/main.yml b/roles/common/tasks/main.yml index 61e244a..d91d438 100644 --- a/roles/common/tasks/main.yml +++ b/roles/common/tasks/main.yml @@ -10,3 +10,4 @@ - include: manpage.yml - include: monitoring.yml - include: scripts.yml +- include: postfix.yml diff --git a/roles/common/tasks/postfix.yml b/roles/common/tasks/postfix.yml new file mode 100644 index 0000000..b997138 --- /dev/null +++ b/roles/common/tasks/postfix.yml @@ -0,0 +1,9 @@ +# This setup the letsencrypt stuff we have +--- +- name: Set up post-deploy LE stuff + copy: + src: ../files/etc/letsencrypt/renewal-hooks/postfix + dest: /etc/letsencrypt/renewal-hooks/postfix + owner: root + group: root + mode: 0644