From b3af940cdfa1bd2533da575ce536fdab001122bb Mon Sep 17 00:00:00 2001 From: Kare Nuorteva Date: Thu, 13 Jan 2022 19:35:32 +0200 Subject: [PATCH] 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 --- tasks/setup-Debian.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/tasks/setup-Debian.yml b/tasks/setup-Debian.yml index cc444ca..2dd2b34 100644 --- a/tasks/setup-Debian.yml +++ b/tasks/setup-Debian.yml @@ -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