
As we are using ansible 2.0, we should move from sudo to become to avoid deprecation. Change-Id: Ia084759b9c38f5c045ab14eab3af63a2ad33069f Closes-bug: 1547430
10 lines
222 B
YAML
10 lines
222 B
YAML
|
|
- hosts: [{{host}}]
|
|
become: yes
|
|
tasks:
|
|
- shell: docker --version
|
|
ignore_errors: true
|
|
register: docker_version
|
|
- shell: curl -sSL https://get.docker.com/ | sudo sh
|
|
when: docker_version|failed
|