diff options
-rw-r--r-- | roles/nginx/tasks/main.yml | 2 |
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: |