Skip to content

Commit

Permalink
fix: symlink the nginx_status file
Browse files Browse the repository at this point in the history
This is necessary for for the monitoring setup.
  • Loading branch information
jacderida committed Dec 17, 2024
1 parent df2ed42 commit 0157e6a
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion resources/ansible/roles/cache_webserver/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,15 @@
src: nginx_status.conf.j2
dest: /etc/nginx/sites-available/nginx_status

- name: ensure nginx status file symlink is present
file:
src: /etc/nginx/sites-available/nginx_status
dest: /etc/nginx/sites-enabled/nginx_status
state: link
when: json_files.matched > 0

- name: reload nginx to apply changes
service:
name: nginx
state: reloaded
when: json_files.matched > 0
when: json_files.matched > 0

0 comments on commit 0157e6a

Please sign in to comment.