Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Issue #470 #477

Merged
merged 1 commit into from
Nov 23, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions tasks/setup-Debian.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,20 @@
path: /etc/apt/trusted.gpg.d/docker.asc
state: absent

- name: Ensure old apt source list is not present in /etc/apt/sources.list.d
ansible.builtin.file:
path: /etc/apt/sources.list.d/download_docker_com_linux_ubuntu.list
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 14 in tasks/setup-Debian.yml

View workflow job for this annotation

GitHub Actions / Lint

14: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 20 in tasks/setup-Debian.yml

View workflow job for this annotation

GitHub Actions / Lint

20:3 [comments] too few spaces before comment
name: Ensure old versions of Docker are not installed.
package:
name: "{{ docker_obsolete_packages }}"
Expand All @@ -30,13 +35,13 @@
file:
path: /etc/apt/keyrings
state: directory
mode: '0755'
mode: "0755"

- name: Add Docker apt key.
ansible.builtin.get_url:
url: "{{ docker_apt_gpg_key }}"
dest: /etc/apt/keyrings/docker.asc
mode: '0644'
mode: "0644"
force: false
checksum: "{{ docker_apt_gpg_key_checksum | default(omit) }}"
register: add_repository_key
Expand Down
Loading