From c9e1aa28481b3ab91e1055bf3b1b87504bce1840 Mon Sep 17 00:00:00 2001 From: Emilien Mantel Date: Wed, 31 May 2023 09:31:26 +0200 Subject: [PATCH] :white_check_mark: Skip checks for Ubuntu 18.04 Curl does not manage proxy protocol... --- tests/includes/post_common.yml | 23 +++++++++++++---------- 1 file changed, 13 insertions(+), 10 deletions(-) diff --git a/tests/includes/post_common.yml b/tests/includes/post_common.yml index 275ee43..6ac8078 100644 --- a/tests/includes/post_common.yml +++ b/tests/includes/post_common.yml @@ -240,17 +240,20 @@ # -------------------------------- # Check Proxy protocol # -------------------------------- -- name: SHELL | Check HTTP proxy protocol - 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: BLOCK - Check proxy protocol + when: not (ansible_distribution == 'Ubuntu' and ansible_distribution_major_version | int == 18) + block: + - name: SHELL | Check HTTP proxy protocol + 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 - ansible.builtin.shell: set -o pipefail && curl -I --haproxy-protocol -k https://test-ssl-proxy-protocol.local:20443 | grep -qi 'X-Proxy-Protocol' - args: - executable: /bin/bash - changed_when: false + - 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' + args: + executable: /bin/bash + changed_when: false # -------------------------------- # Check HTTP2