Skip to content

Commit

Permalink
Trigger nginx restart when the playbook run completes
Browse files Browse the repository at this point in the history
  • Loading branch information
rlskoeser committed Oct 9, 2024
1 parent 1eaa2eb commit 3dd7e87
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions playbooks/escriptorium.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@
- name: Restart supervisor apps to load any python/django configuration changes
ansible.builtin.command: "sudo supervisorctl restart {{ item.name }}"
loop: "{{ supervisor_programs }}"
- name: Notify handler to restart nginx
ansible.builtin.meta: noop
notify:
- Restart nginx
environment:
# escriptorium local settings REPLACES default settings, must be specified
# via env var for django manage commands to pick up
Expand Down

0 comments on commit 3dd7e87

Please sign in to comment.