Skip to content

Commit

Permalink
Merge pull request #461 from gluckgames/fix/apt-key-duplication
Browse files Browse the repository at this point in the history
Remove trusted.gpg.d artifacts.
  • Loading branch information
geerlingguy authored Aug 27, 2024
2 parents bccb2d9 + f666736 commit ae17f06
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions tasks/setup-Debian.yml
Original file line number Diff line number Diff line change
@@ -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 }}"

Check warning on line 9 in tasks/setup-Debian.yml

View workflow job for this annotation

GitHub Actions / Lint

9:201 [line-length] line too long (224 > 200 characters)
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

Check warning on line 15 in tasks/setup-Debian.yml

View workflow job for this annotation

GitHub Actions / Lint

15:3 [comments] too few spaces before comment
name: Ensure old versions of Docker are not installed.
package:
Expand Down

0 comments on commit ae17f06

Please sign in to comment.