diff options
author | Guilhem Moulin <guilhem@fripost.org> | 2015-06-03 19:23:36 +0200 |
---|---|---|
committer | Guilhem Moulin <guilhem@fripost.org> | 2015-06-07 02:54:18 +0200 |
commit | e1b50dad0f60422ff0efb1a2538c0a13adf9e41e (patch) | |
tree | cd10c54c829d84c7db069655e611af391ec6fdf6 /roles/lists | |
parent | 0dbdc948c7c2bda7e2610a7b48b17f63bec184ea (diff) |
Restart services when updating systemd unit files.
Diffstat (limited to 'roles/lists')
-rw-r--r-- | roles/lists/handlers/main.yml | 7 | ||||
-rw-r--r-- | roles/lists/tasks/sympa.yml | 1 |
2 files changed, 6 insertions, 2 deletions
diff --git a/roles/lists/handlers/main.yml b/roles/lists/handlers/main.yml index 811b86d..d4dd998 100644 --- a/roles/lists/handlers/main.yml +++ b/roles/lists/handlers/main.yml @@ -1,4 +1,7 @@ --- +- name: systemctl daemon-reload + command: /bin/systemctl daemon-reload + - name: Reload Postfix service: name=postfix state=reloaded @@ -8,5 +11,5 @@ - name: Restart Sympa service: name=sympa state=restarted -- name: systemctl daemon-reload - command: /bin/systemctl daemon-reload +- name: Restart wwsympa + service: name=wwsympa state=restarted diff --git a/roles/lists/tasks/sympa.yml b/roles/lists/tasks/sympa.yml index 245e148..6aa1852 100644 --- a/roles/lists/tasks/sympa.yml +++ b/roles/lists/tasks/sympa.yml @@ -74,6 +74,7 @@ mode=0644 notify: - systemctl daemon-reload + - Restart wwsympa with_items: - wwsympa.service - wwsympa.socket |