Fixes ansible-lint failure on shell task without pipefail.

master
Jeff Geerling 2019-03-21 07:11:14 -05:00
parent fa1a56824e
commit 5afc0f8ab4
1 changed files with 3 additions and 1 deletions

View File

@ -26,7 +26,9 @@
when: add_repository_key is failed
- name: Add Docker apt key (alternative for older systems without SNI).
shell: "curl -sSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -"
shell: |
set -o pipefail
curl -sSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
args:
warn: false
when: add_repository_key is failed