Fixes ansible-lint failure on shell task without pipefail.

This commit is contained in:
Jeff Geerling 2019-03-21 07:11:14 -05:00
parent fa1a56824e
commit 5afc0f8ab4

View File

@ -26,7 +26,9 @@
when: add_repository_key is failed when: add_repository_key is failed
- name: Add Docker apt key (alternative for older systems without SNI). - 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: args:
warn: false warn: false
when: add_repository_key is failed when: add_repository_key is failed