From e07ed5d24ae53837b21c0dd1993069b11cd3348d Mon Sep 17 00:00:00 2001 From: Andrea Dell'Amico Date: Mon, 6 Jun 2022 13:20:46 +0200 Subject: [PATCH] Fix the secret dest file path --- tasks/postsrsd.yml | 21 +++++++++------------ 1 file changed, 9 insertions(+), 12 deletions(-) diff --git a/tasks/postsrsd.yml b/tasks/postsrsd.yml index 724e6f0..869a7b2 100644 --- a/tasks/postsrsd.yml +++ b/tasks/postsrsd.yml @@ -30,6 +30,15 @@ - name: POSTSRSD configuration block: + - name: Install the postsrsd secret. After the first start of the service + template: + src: postsrsd.secret.j2 + dest: '{{ postfix_srs_secret_file }}' + mode: 0440 + owner: '{{ postfix_srs_user }}' + group: 'root' + notify: restart postsrsd + - name: Install the postsrsd configuration file template: src: 'postsrsd.default.j2' @@ -51,15 +60,3 @@ tags: ['postfix', 'postfix_postsrsd', 'postsrsd'] -- name: POSTSRSD secret - block: - - name: Install the postsrsd secret. After the first start of the service - template: - src: postsrsd.secret.j2 - dest: '{{ postfix_srs_conf_file }}' - mode: 0440 - owner: '{{ postfix_srs_user }}' - group: 'root' - notify: restart postsrsd - - tags: ['postfix', 'postfix_postsrsd', 'postsrsd', 'postfix_conf', 'postsrsd_conf']