✅ Skip checks for Ubuntu 18.04
Curl does not manage proxy protocol...feature/add_main_opts
parent
f3944c83d5
commit
3cb56d4275
|
@ -240,17 +240,20 @@
|
||||||
# --------------------------------
|
# --------------------------------
|
||||||
# Check Proxy protocol
|
# Check Proxy protocol
|
||||||
# --------------------------------
|
# --------------------------------
|
||||||
- name: SHELL | Check HTTP proxy protocol
|
- name: BLOCK - Check proxy protocol
|
||||||
ansible.builtin.shell: set -o pipefail && curl -I --haproxy-protocol http://test-ssl-proxy-protocol.local:20080 | grep -qi 'X-Proxy-Protocol'
|
when: not (ansible_distribution == 'Ubuntu' and ansible_distribution_major_version | int == 18)
|
||||||
args:
|
block:
|
||||||
executable: /bin/bash
|
- name: SHELL | Check HTTP proxy protocol
|
||||||
changed_when: false
|
ansible.builtin.shell: set -o pipefail && curl -I --haproxy-protocol http://test-ssl-proxy-protocol.local:20080 | grep -qi 'X-Proxy-Protocol'
|
||||||
|
args:
|
||||||
|
executable: /bin/bash
|
||||||
|
changed_when: false
|
||||||
|
|
||||||
- name: SHELL | Check HTTPS proxy protocol
|
- name: SHELL | Check HTTPS proxy protocol
|
||||||
ansible.builtin.shell: set -o pipefail && curl -I --haproxy-protocol -k https://test-ssl-proxy-protocol.local:20443 | grep -qi 'X-Proxy-Protocol'
|
ansible.builtin.shell: set -o pipefail && curl -I --haproxy-protocol -k https://test-ssl-proxy-protocol.local:20443 | grep -qi 'X-Proxy-Protocol'
|
||||||
args:
|
args:
|
||||||
executable: /bin/bash
|
executable: /bin/bash
|
||||||
changed_when: false
|
changed_when: false
|
||||||
|
|
||||||
# --------------------------------
|
# --------------------------------
|
||||||
# Check HTTP2
|
# Check HTTP2
|
||||||
|
|
Loading…
Reference in New Issue