pipefail linter error, syntax fix

This commit is contained in:
Marek Sirovy 2021-02-23 11:26:28 +01:00
parent 1be5608a53
commit ccc31dda40

View File

@ -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