diff options
author | Robin Obůrka <robin.oburka@nic.cz> | 2016-09-21 13:05:42 +0200 |
---|---|---|
committer | Robin Obůrka <robin.oburka@nic.cz> | 2016-09-21 13:05:42 +0200 |
commit | 0ab96a57bd0246626ad54c118e1cce8e1eccfec1 (patch) | |
tree | 036869b60bfa58b22cec13c53703e48c19dd52ca /roles | |
parent | nginx: Do not deploy default config automatically (diff) | |
download | ansible-roles-0ab96a57bd0246626ad54c118e1cce8e1eccfec1.tar.xz |
Revert "nginx: Do not deploy default config automatically"
This reverts commit d56611eb4f0d0363a426e69790ebfc95bb3d2f7e.
Diffstat (limited to 'roles')
-rw-r--r-- | roles/nginx/tasks/main.yml | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/roles/nginx/tasks/main.yml b/roles/nginx/tasks/main.yml index 4202394..122c5b8 100644 --- a/roles/nginx/tasks/main.yml +++ b/roles/nginx/tasks/main.yml @@ -61,7 +61,6 @@ stat: path: /etc/nginx/sites-enabled/default register: stat_default - when: default is defined - name: Delete nginx default page file: @@ -69,7 +68,7 @@ state: absent notify: - restart nginx - when: default is defined and stat_default.stat.islnk == True + when: stat_default.stat.islnk == True - name: Deploy temporary default page (with our snippets etc) copy: @@ -81,7 +80,6 @@ owner: root group: root mode: 0644 - when: default is defined notify: - restart nginx |