Comment failback of add docker apt key

This commit is contained in:
Bertrand Benjamin 2018-08-28 09:59:46 +02:00
parent 986a653c85
commit 4a756109f7

View File

@ -21,19 +21,19 @@
url: https://download.docker.com/linux/ubuntu/gpg
id: 9DC858229FC7DD38854AE2D88D81803C0EBFCD88
state: present
register: add_repository_key
- name: Ensure curl is present.
package:
- name: curl
- state: present
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 -"
args:
warn: no
when: add_repository_key is failed
# register: add_repository_key
#
# - name: Ensure curl is present.
# package:
# - name: curl
# - state: present
# 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 -"
# args:
# warn: no
# when: add_repository_key is failed
- name: Add Docker repository.
apt_repository: