From 6407b6ec147951aaaded89a553dc9a81f49100ec Mon Sep 17 00:00:00 2001 From: Aaron LI Date: Sun, 22 Sep 2019 14:31:23 +0800 Subject: mail: Update certificate deployment w.r.t. acme.sh --- roles/mail/tasks/main.yml | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'roles/mail/tasks') diff --git a/roles/mail/tasks/main.yml b/roles/mail/tasks/main.yml index 3379151..a9f6daa 100644 --- a/roles/mail/tasks/main.yml +++ b/roles/mail/tasks/main.yml @@ -183,10 +183,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/*" +- name: acme - add mail services to deploy + blockinfile: + path: "{{ web.acme_home }}/deploy.local.sh" + marker: "# {mark} ANSIBLE MANAGED - mail" + block: | + service dovecot reload + service postfix reload tags: acme -- cgit v1.2.2