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
|
url: https://download.docker.com/linux/ubuntu/gpg
|
||||||
id: 9DC858229FC7DD38854AE2D88D81803C0EBFCD88
|
id: 9DC858229FC7DD38854AE2D88D81803C0EBFCD88
|
||||||
state: present
|
state: present
|
||||||
register: add_repository_key
|
# register: add_repository_key
|
||||||
|
#
|
||||||
- name: Ensure curl is present.
|
# - name: Ensure curl is present.
|
||||||
package:
|
# package:
|
||||||
- name: curl
|
# - name: curl
|
||||||
- state: present
|
# - state: present
|
||||||
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: "curl -sSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -"
|
||||||
args:
|
# args:
|
||||||
warn: no
|
# warn: no
|
||||||
when: add_repository_key is failed
|
# when: add_repository_key is failed
|
||||||
|
|
||||||
- name: Add Docker repository.
|
- name: Add Docker repository.
|
||||||
apt_repository:
|
apt_repository:
|
||||||
|
Loading…
Reference in New Issue
Block a user