From 0157e6a3ffbf6d56154502cede178307923b8e9c Mon Sep 17 00:00:00 2001 From: Chris O'Neil Date: Tue, 17 Dec 2024 22:06:34 +0000 Subject: [PATCH] fix: symlink the `nginx_status` file This is necessary for for the monitoring setup. --- resources/ansible/roles/cache_webserver/tasks/main.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/resources/ansible/roles/cache_webserver/tasks/main.yml b/resources/ansible/roles/cache_webserver/tasks/main.yml index a98a0171..8b58718c 100644 --- a/resources/ansible/roles/cache_webserver/tasks/main.yml +++ b/resources/ansible/roles/cache_webserver/tasks/main.yml @@ -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 \ No newline at end of file + when: json_files.matched > 0