Add HTTP2 check

pull/14/head
Emilien Mantel 2016-03-05 11:29:37 +01:00
parent e43a958b03
commit 1f82e7adfe
1 changed files with 11 additions and 0 deletions

View File

@ -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