system-config/playbooks/roles/mailman3/handlers/main.yaml
Jeremy Stanley eec60a2cb9 Restart Mailman 3 containers when configs change
Add a handler for restarting Mailman 3 containers if they're up, and
notify it from all of the copy tasks for configuration files. Check
for the uwsgi processes that Django runs under to determine whether
the containers are running.

Change-Id: I73be59be773fdde100999c7872520aab1d9e2066
2023-08-17 15:52:26 +00:00

13 lines
261 B
YAML

- name: mailman restart apache2
service:
name: apache2
state: restarted
- name: mailman reload apache2
service:
name: apache2
state: reloaded
- name: mailman restart containers
include_tasks: roles/mailman3/handlers/restart_mailman.yaml