This commit is contained in:
parent
a0d3d849ca
commit
c10c8fe86e
1 changed files with 8 additions and 2 deletions
10
deploy.yml
10
deploy.yml
|
|
@ -14,11 +14,17 @@
|
||||||
- name: Add Docker GPG apt Key
|
- name: Add Docker GPG apt Key
|
||||||
apt_key:
|
apt_key:
|
||||||
url: https://download.docker.com/linux/ubuntu/gpg
|
url: https://download.docker.com/linux/ubuntu/gpg
|
||||||
state: present
|
state: absent
|
||||||
|
|
||||||
|
- name: Add Docker GPG apt Key (new)
|
||||||
|
ansible.builtin.get_url:
|
||||||
|
# Docker Release (CE deb) <docker@docker.com>
|
||||||
|
url: "https://keyserver.ubuntu.com?op=get&search=9dc858229fc7dd38854ae2d88d81803c0ebfcd88"
|
||||||
|
dest: /etc/apt/keyrings/docker_rel_ce_deb.asc
|
||||||
|
|
||||||
- name: Add Docker Repository
|
- name: Add Docker Repository
|
||||||
apt_repository:
|
apt_repository:
|
||||||
repo: "deb https://download.docker.com/linux/ubuntu {{ ansible_distribution_release }} stable"
|
repo: "deb [arch=amd64 signed-by=/etc/apt/keyrings/docker_rel_ce_deb.asc] https://download.docker.com/linux/ubuntu {{ ansible_distribution_release }} stable"
|
||||||
state: present
|
state: present
|
||||||
|
|
||||||
- name: Update apt and install docker-ce
|
- name: Update apt and install docker-ce
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue