From 1f82e7adfe86edf8e0f076635f6c8c64aaa9f23d Mon Sep 17 00:00:00 2001 From: Emilien Mantel Date: Sat, 5 Mar 2016 11:29:37 +0100 Subject: [PATCH] Add HTTP2 check --- tests/test.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/tests/test.yml b/tests/test.yml index addf686..2bcfba7 100644 --- a/tests/test.yml +++ b/tests/test.yml @@ -338,3 +338,14 @@ failed_when: > vdefault_status.stderr.find('X-ansible-default') == -1 or vdefault_status.stdout.find('Active connections') == -1 + +# -------------------------------- +# Check HTTP2 +# -------------------------------- + - block: + - name: APT | Install nghttp2 + apt: pkg=nghttp2 state=present + - name: SHELL | Check HTTP2 + shell: nghttp -nv https://localhost 2> /dev/null | grep -q h2 + changed_when: false + when: nginx_auto_config_httpv2 and 'http_v2' in nginx_modules.stdout_lines