aboutsummaryrefslogtreecommitdiffstats
path: root/roles/mail
diff options
context:
space:
mode:
authorAaron LI <aly@aaronly.me>2018-03-14 17:16:55 +0800
committerAaron LI <aly@aaronly.me>2018-03-14 17:16:55 +0800
commit4e4575924b61d26c9e3e0d0770fc2908ac192f7f (patch)
tree93c5440d8550dca216398c68f0d437254d6574b5 /roles/mail
parent126ad0728f1029e49e7eb5071d2a0788b239e64f (diff)
downloadansible-dfly-vps-4e4575924b61d26c9e3e0d0770fc2908ac192f7f.tar.bz2
web/acme: refactor certificates deployment
Diffstat (limited to 'roles/mail')
-rw-r--r--roles/mail/files/acme/dovecot6
-rw-r--r--roles/mail/files/acme/postfix6
-rw-r--r--roles/mail/tasks/main.yml8
3 files changed, 20 insertions, 0 deletions
diff --git a/roles/mail/files/acme/dovecot b/roles/mail/files/acme/dovecot
new file mode 100644
index 0000000..367ec0b
--- /dev/null
+++ b/roles/mail/files/acme/dovecot
@@ -0,0 +1,6 @@
+#!/bin/sh
+#
+# ACME deployment script
+#
+
+reload dovecot
diff --git a/roles/mail/files/acme/postfix b/roles/mail/files/acme/postfix
new file mode 100644
index 0000000..c3cc92d
--- /dev/null
+++ b/roles/mail/files/acme/postfix
@@ -0,0 +1,6 @@
+#!/bin/sh
+#
+# ACME deployment script
+#
+
+reload postfix
diff --git a/roles/mail/tasks/main.yml b/roles/mail/tasks/main.yml
index 968dd2b..c243a36 100644
--- a/roles/mail/tasks/main.yml
+++ b/roles/mail/tasks/main.yml
@@ -189,3 +189,11 @@
- name: postfix - start service
command: rcstart postfix
+
+- name: acme - copy deployment scripts
+ copy:
+ src: "{{ item }}"
+ dest: /usr/local/etc/acme/deploy.d/{{ item | basename }}
+ with_fileglob:
+ - "acme/*"
+ tags: acme