diff --git a/roles/nginx/application/tasks/main.yml b/roles/nginx/application/tasks/main.yml index 4a7bf38..5c8e55a 100644 --- a/roles/nginx/application/tasks/main.yml +++ b/roles/nginx/application/tasks/main.yml @@ -54,6 +54,7 @@ template: src: nginx.conf dest: "{{ nginx_installation_directory }}/nginx.conf" + validate: /usr/sbin/nginx -t -c %s notify: reload nginx - name: Allow ports for http in firewall