srs: install the secret after the first start.

This commit is contained in:
Andrea Dell'Amico 2022-06-06 13:09:57 +02:00
parent 0771c7b9aa
commit cc3d98d893
Signed by: adellam
GPG Key ID: 147ABE6CEB9E20FF
1 changed files with 13 additions and 9 deletions

View File

@ -30,15 +30,6 @@
- name: POSTSRSD configuration
block:
- name: Install the postsrsd secret
template:
src: postsrsd.secret.j2
dest: '{{ postfix_srs_conf_file }}'
mode: 0440
owner: '{{ postfix_srs_user }}'
group: 'root'
notify: restart postsrsd
- name: Install the postsrsd configuration file
template:
src: 'postsrsd.default.j2'
@ -59,3 +50,16 @@
enabled: true
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']