From ccc31dda40bc545ac03fd429a89c60e8f62b989f Mon Sep 17 00:00:00 2001 From: Marek Sirovy Date: Tue, 23 Feb 2021 11:26:28 +0100 Subject: [PATCH] pipefail linter error, syntax fix --- tasks/setup-Debian.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/tasks/setup-Debian.yml b/tasks/setup-Debian.yml index d701135..aeaa841 100644 --- a/tasks/setup-Debian.yml +++ b/tasks/setup-Debian.yml @@ -23,11 +23,14 @@ ignore_errors: "{{ docker_apt_ignore_key_error }}" - name: Ensure curl is present (on older systems without SNI). - package: name=curl state=present + package: + name: curl + state: present when: add_repository_key is failed - name: Add Docker apt key (alternative for older systems without SNI). - shell: > + shell: | + set -o pipefail curl -sSL {{ docker_apt_gpg_key }} | sudo apt-key add - args: warn: false