fix pipefail setting

This commit is contained in:
Rich Megginson 2023-04-10 14:29:38 -06:00
parent 70808e97fc
commit b29e05f24d

View file

@ -36,7 +36,7 @@
changed_when: true changed_when: true
- name: Unminimize image on Debian. It looks like there is no simpler way to get manual pages - 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: when:
- ansible_facts['distribution'] == "Ubuntu" - ansible_facts['distribution'] == "Ubuntu"
changed_when: true changed_when: true
@ -63,7 +63,7 @@
- name: Get list of options from manual page - name: Get list of options from manual page
ansible.builtin.shell: >- 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 changed_when: false
- name: Get list of options from manual page - name: Get list of options from manual page