From 5fa2ca3e42e379d75de4689d003a75dec35fbf02 Mon Sep 17 00:00:00 2001 From: Paul Belanger Date: Sat, 30 Mar 2019 22:06:04 -0400 Subject: [PATCH] Stop validating nginx configuration This should be done by testinfra or some other tool outside of our ansible runs. Change-Id: I9b4d1b9a02bd0426d6619e329f561df7a7abb98e Signed-off-by: Paul Belanger --- handlers/main.yaml | 4 ---- tasks/config.yaml | 2 -- 2 files changed, 6 deletions(-) diff --git a/handlers/main.yaml b/handlers/main.yaml index 0e05257..85ae008 100644 --- a/handlers/main.yaml +++ b/handlers/main.yaml @@ -12,10 +12,6 @@ # License for the specific language governing permissions and limitations # under the License. --- -- name: Validate nginx - become: yes - shell: /usr/sbin/nginx -t -c /etc/nginx/nginx.conf - - name: Restart nginx become: yes service: diff --git a/tasks/config.yaml b/tasks/config.yaml index f9d3492..dd4c947 100644 --- a/tasks/config.yaml +++ b/tasks/config.yaml @@ -19,7 +19,6 @@ src: "{{ nginx_file_nginx_conf_src }}" when: nginx_file_nginx_conf_src notify: - - Validate nginx - Restart nginx - name: Copy nginx custom configuration @@ -32,5 +31,4 @@ src: "{{ nginx_file_include_dir_src }}" when: nginx_file_include_dir_src notify: - - Validate nginx - Restart nginx