Skip to content

Commit

Permalink
sap_swpm: No need to use pipefail in shell module
Browse files Browse the repository at this point in the history
... when there is no pipe.

Signed-off-by: Bernd Finger <[email protected]>
  • Loading branch information
berndfinger committed Mar 4, 2024
1 parent b76b655 commit 538a410
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion roles/sap_swpm/tasks/swpm/prepare_software.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@
# - no-changed-when: Not worth checking permissions and ownership before this task and comparing afterwards
- name: SAP SWPM Pre Install - Ensure correct permissions and ownership of all non-SAPCAR files # noqa command-instead-of-module no-changed-when
ansible.builtin.shell: >
set -o pipefail && chown {{ sap_swpm_files_non_sapcar_owner }}:{{ sap_swpm_files_non_sapcar_group }} \
chown {{ sap_swpm_files_non_sapcar_owner }}:{{ sap_swpm_files_non_sapcar_group }} \
{{ __sap_swpm_fact_files_non_sapcar_chown_arg_list }} &&
chmod {{ sap_swpm_files_non_sapcar_mode }} \
{{ __sap_swpm_fact_files_non_sapcar_chown_arg_list }}
Expand Down

0 comments on commit 538a410

Please sign in to comment.