From 4e4575924b61d26c9e3e0d0770fc2908ac192f7f Mon Sep 17 00:00:00 2001 From: Aaron LI Date: Wed, 14 Mar 2018 17:16:55 +0800 Subject: web/acme: refactor certificates deployment --- roles/mail/files/acme/dovecot | 6 ++++++ roles/mail/files/acme/postfix | 6 ++++++ roles/mail/tasks/main.yml | 8 ++++++++ 3 files changed, 20 insertions(+) create mode 100644 roles/mail/files/acme/dovecot create mode 100644 roles/mail/files/acme/postfix (limited to 'roles/mail') 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 -- cgit v1.2.2