Skip to content

Commit

Permalink
sap_install_media_detect: split long command line in shell module
Browse files Browse the repository at this point in the history
  • Loading branch information
berndfinger committed Nov 16, 2023
1 parent a864117 commit 8f02c21
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@
# Reason for noqa: When using pipefail and there is no result from the grep -v, this tail will fail but it should never fail
- name: SAP Install Media Detect - Prepare - Find the relevant non-extract subdirectories # noqa risky-shell-pipe
ansible.builtin.shell:
cmd: ls -d sap_hana sap_swpm_download_basket $({{ __sap_install_media_detect_sapfile_path }} -s) 2>/dev/null | awk '{print ("'{{ __sap_install_media_detect_software_main_directory }}'/"$0"/")}'
cmd: >
ls -d sap_hana sap_swpm_download_basket $({{ __sap_install_media_detect_sapfile_path }} -s) 2>/dev/null |
awk '{print ("'{{ __sap_install_media_detect_software_main_directory }}'/"$0"/")}'
chdir: "{{ __sap_install_media_detect_software_main_directory }}"
register: __sap_install_media_detect_register_subdirectories_phase_1b
changed_when: false
Expand Down

0 comments on commit 8f02c21

Please sign in to comment.