mirror of
https://github.com/geerlingguy/ansible-role-docker.git
synced 2024-11-18 19:10:43 +01:00
Remove trusted.gpg.d artifacts. Fixes geerlingguy/ansible-role-docker#460
This commit is contained in:
parent
e7ee1a8d1e
commit
f666736e79
@ -1,4 +1,17 @@
|
|||||||
---
|
---
|
||||||
|
- name: Ensure apt key is not present in trusted.gpg.d
|
||||||
|
ansible.builtin.file:
|
||||||
|
path: /etc/apt/trusted.gpg.d/docker.asc
|
||||||
|
state: absent
|
||||||
|
|
||||||
|
- name: Ensure the repo referencing the previous trusted.gpg.d key is not present
|
||||||
|
apt_repository:
|
||||||
|
repo: "deb [arch={{ docker_apt_arch }} signed-by=/etc/apt/trusted.gpg.d/docker.asc] {{ docker_repo_url }}/{{ docker_apt_ansible_distribution | lower }} {{ ansible_distribution_release }} {{ docker_apt_release_channel }}"
|
||||||
|
state: absent
|
||||||
|
filename: "{{ docker_apt_filename }}"
|
||||||
|
update_cache: true
|
||||||
|
when: docker_add_repo | bool
|
||||||
|
|
||||||
- # See https://docs.docker.com/engine/install/debian/#uninstall-old-versions
|
- # See https://docs.docker.com/engine/install/debian/#uninstall-old-versions
|
||||||
name: Ensure old versions of Docker are not installed.
|
name: Ensure old versions of Docker are not installed.
|
||||||
package:
|
package:
|
||||||
|
Loading…
Reference in New Issue
Block a user