refactor: add error check for shell pipe

risky-shell-pipe: Shells that use pipes should set the pipefail option
tasks/setup-Debian.yml:40 Task/Handler: Add Docker apt key (alternative for older systems without SNI).

Fixes geerlingguy/ansible-role-docker#327
This commit is contained in:
Kare Nuorteva 2022-01-13 19:35:32 +02:00
parent eeef0c0082
commit b3af940cdf

View File

@ -39,6 +39,7 @@
- name: Add Docker apt key (alternative for older systems without SNI).
shell: >
set -e -o pipefail
curl -sSL {{ docker_apt_gpg_key }} | apt-key add -
args:
warn: false