Comment failback of add docker apt key
This commit is contained in:
parent
986a653c85
commit
4a756109f7
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user