Add a tag to isolate the tasks that manage the main config file.

This commit is contained in:
Andrea Dell'Amico 2026-08-21 15:25:33 +02:00
parent ab7a71d6c2
commit 123e9f3f7e
Signed by: adellam
GPG Key ID: 147ABE6CEB9E20FF
1 changed files with 2 additions and 0 deletions

View File

@ -58,6 +58,7 @@
- 'mailman.cfg'
- 'postfix-mailman.cfg'
register: mailman_conf_install
tags: [ 'mailman', 'mailman_conf', 'mailman_main_conf' ]
- name: The mailman executables must be visible to systemd
file: src={{ mailman_bindir }}/{{ item }} dest=/sbin/{{ item }} state=link
@ -96,6 +97,7 @@
- name: Restart mailman if the configuration changed
service: name=mailman state=restarted
when: mailman_conf_install is changed
tags: [ 'mailman', 'mailman_conf', 'mailman_main_conf' ]
- name: Restart mailman if the configuration changed
service: name=mailman state=restarted