forked from ISTI-ansible-roles/ansible-role-mailman
Add a tag to isolate the tasks that manage the main config file.
This commit is contained in:
parent
ab7a71d6c2
commit
123e9f3f7e
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue