Merge pull request 'Add a tag to isolate the tasks that manage the main config file.' (!18) from adellam/mailman:master into master

Reviewed-on: ISTI-ansible-roles/ansible-role-mailman#18
This commit is contained in:
Andrea Dell'Amico 2026-08-21 15:25:56 +02:00
commit 26fa450eea
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