From 10ed3b4eef1343a2f668eaf960ed4a3d9752afc0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robin=20Ob=C5=AFrka?= Date: Tue, 30 Aug 2016 15:09:52 +0200 Subject: nginx: Fix conditional that deletes default config --- roles/nginx/tasks/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/nginx/tasks/main.yml b/roles/nginx/tasks/main.yml index 122c5b8..2ac852e 100644 --- a/roles/nginx/tasks/main.yml +++ b/roles/nginx/tasks/main.yml @@ -68,7 +68,7 @@ state: absent notify: - restart nginx - when: stat_default.stat.islnk == True + when: stat_default.stat.exists and stat_default.stat.islnk == True - name: Deploy temporary default page (with our snippets etc) copy: -- cgit v1.2.3