mirror of
https://github.com/geerlingguy/ansible-role-docker.git
synced 2025-09-26 17:51:03 +02:00
Confom to newer Ansible lint
This commit is contained in:
parent
fa1a56824e
commit
86c5b3f887
@ -22,11 +22,13 @@
|
|||||||
ignore_errors: "{{ docker_apt_ignore_key_error }}"
|
ignore_errors: "{{ docker_apt_ignore_key_error }}"
|
||||||
|
|
||||||
- name: Ensure curl is present (on older systems without SNI).
|
- name: Ensure curl is present (on older systems without SNI).
|
||||||
package: name=curl state=present
|
get_url:
|
||||||
|
url: https://download.docker.com/linux/ubuntu/gpg
|
||||||
|
dest: /tmp/docker-repo-key
|
||||||
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: sudo apt-key add /tmp/docker-repo-key
|
||||||
args:
|
args:
|
||||||
warn: false
|
warn: false
|
||||||
when: add_repository_key is failed
|
when: add_repository_key is failed
|
||||||
|
Loading…
Reference in New Issue
Block a user