Skip to content

Commit

Permalink
update nginx handlers
Browse files Browse the repository at this point in the history
  • Loading branch information
cehbrecht committed Mar 13, 2023
1 parent ec9f0f6 commit b9cab33
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions roles/roocs/handlers/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
- name: restart nginx
service:
name: nginx
state: restarted
5 changes: 5 additions & 0 deletions roles/roocs/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,8 @@
template:
src: ./templates/nginx.conf.j2
dest: "{{ nginx_conf_path }}/nginx.conf"

- name: Assure nginx running at end of playbook
command: /bin/true
notify:
- restart nginx

0 comments on commit b9cab33

Please sign in to comment.