summaryrefslogtreecommitdiffstats
path: root/roles
diff options
context:
space:
mode:
authorGravatar Robin Obůrka <robin.oburka@nic.cz> 2016-08-30 15:09:52 +0200
committerGravatar Robin Obůrka <robin.oburka@nic.cz> 2016-09-21 13:06:41 +0200
commit10ed3b4eef1343a2f668eaf960ed4a3d9752afc0 (patch)
treed9b371b701a0011d97ce77521a777693ce53cfca /roles
parentRevert "nginx: Do not deploy default config automatically" (diff)
downloadansible-roles-10ed3b4eef1343a2f668eaf960ed4a3d9752afc0.tar.xz
nginx: Fix conditional that deletes default config
Diffstat (limited to 'roles')
-rw-r--r--roles/nginx/tasks/main.yml2
1 files changed, 1 insertions, 1 deletions
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: