mirror of
https://github.com/HanXHX/ansible-nginx.git
synced 2026-02-24 09:03:29 +07:00
Fix check HTTP2 on FreeBSD (multi-OS code)
This commit is contained in:
@@ -9,6 +9,7 @@
|
||||
- php5-fpm
|
||||
- curl
|
||||
- fcgiwrap
|
||||
- nghttp2
|
||||
|
||||
- name: SERVICE | Force start services
|
||||
service: name={{ item }} state=started
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
|
||||
- name: SET_FACT | FreeBSD web user
|
||||
set_fact:
|
||||
nginx_pkgng_package: 'nginx-devel'
|
||||
nginx_user: 'www'
|
||||
nginx_php_sockets:
|
||||
- host: '127.0.0.1'
|
||||
@@ -13,6 +14,7 @@
|
||||
- php56
|
||||
- curl
|
||||
- fcgiwrap
|
||||
- nghttp2
|
||||
|
||||
- name: SERVICE | Force start services
|
||||
service: name={{ item }} state=started enabled=yes
|
||||
|
||||
@@ -328,10 +328,9 @@
|
||||
# --------------------------------
|
||||
# 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
|
||||
- name: SHELL | Check HTTP2
|
||||
shell: nghttp -nv https://localhost 2> /dev/null | grep -q h2
|
||||
args:
|
||||
executable: /bin/sh
|
||||
changed_when: false
|
||||
when: nginx_auto_config_httpv2 and 'http_v2' in nginx_modules
|
||||
|
||||
Reference in New Issue
Block a user