Skip to content

Commit

Permalink
fix: remove old repo with outdated key path
Browse files Browse the repository at this point in the history
  • Loading branch information
tboerger committed Jul 24, 2023
1 parent 2f0bb70 commit 3d35d2c
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,25 @@
tags:
- docker

- name: Remove legacy repo
apt_repository:
repo: "deb [arch={{ docker_arch }} signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/ubuntu {{ ansible_distribution_release }} stable"
filename: docker
update_cache: False
state: absent
tags:
- docker

- name: Remove legacy keys
loop:
- /etc/apt/keyrings/docker.asc
- /etc/apt/keyrings/docker.gpg
file:
path: "{{ item }}"
state: absent
tags:
- docker

- name: Download repo key
when: docker_upstream_version
shell:
Expand Down

0 comments on commit 3d35d2c

Please sign in to comment.