From b29e05f24d477387fa496cf89a3998b6e3c56651 Mon Sep 17 00:00:00 2001 From: Rich Megginson Date: Mon, 10 Apr 2023 14:29:38 -0600 Subject: [PATCH] fix pipefail setting --- tests/tests_all_options.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/tests_all_options.yml b/tests/tests_all_options.yml index accbf43..7a20db8 100644 --- a/tests/tests_all_options.yml +++ b/tests/tests_all_options.yml @@ -36,7 +36,7 @@ changed_when: true - name: Unminimize image on Debian. It looks like there is no simpler way to get manual pages - ansible.builtin.shell: set -eu; set -o pipefail || echo no pipefail; yes | unminimize + ansible.builtin.shell: set -eu; set -o | grep -q pipefail && set -o pipefail; yes | unminimize when: - ansible_facts['distribution'] == "Ubuntu" changed_when: true @@ -63,7 +63,7 @@ - name: Get list of options from manual page ansible.builtin.shell: >- - set -eu; set -o pipefail || echo no pipefail; man sshd_config | cat + set -eu; set -o | grep -q pipefail && set -o pipefail; man sshd_config | cat changed_when: false - name: Get list of options from manual page