mirror of
https://github.com/Maks1mS/ansible-role-docker.git
synced 2024-12-23 16:22:59 +03:00
Fixes ansible-lint failure on shell task without pipefail.
This commit is contained in:
parent
fa1a56824e
commit
5afc0f8ab4
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user