fix: Add task to restart services on plugin install

This commit is contained in:
2025-10-26 07:55:26 +01:00
parent 72b9c4f817
commit 27c9fa220c
+6 -1
View File
@@ -15,6 +15,7 @@
- legacy_cgi - legacy_cgi
- pretix-passbook - pretix-passbook
extra_args: --user extra_args: --user
register: dependencies
- name: Create config file - name: Create config file
ansible.builtin.template: ansible.builtin.template:
src: pretix.cfg.j2 src: pretix.cfg.j2
@@ -58,4 +59,8 @@
- name: Update service config - name: Update service config
ansible.builtin.command: ansible.builtin.command:
cmd: supervisorctl update cmd: supervisorctl update
when: pretix_service.changed when: pretix_service.changed
- name: Restart services
ansible.builtin.command:
cmd: supervisorctl restart pretix pretix_worker
when: dependencies.changed && !pretix_service.changed