Skip to content

Commit

Permalink
Use a DEB822 repo for Kali
Browse files Browse the repository at this point in the history
Kali recently updated to a version of apt that no longer provides the
deprecated apt-key binary, so we cannot use ansible.builtin.apt_key to
get the official Docker repo GPG key.  We may as well upgrade to a
DEB822 repo while we're at it.
  • Loading branch information
jsf9k committed Dec 20, 2024
1 parent ede243f commit a78a4f9
Showing 1 changed file with 16 additions and 6 deletions.
22 changes: 16 additions & 6 deletions tasks/setup_Debian.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,20 @@
- curl
- gnupg2
- lsb-release
# Use Debian Bookworm for Kali
- name: Get official Docker repo GPG key (Kali)
ansible.builtin.apt_key:
url: https://download.docker.com/linux/debian/gpg
- name: Install prerequisites so apt can use DEB822 repos (Kali)
ansible.builtin.package:
name:
- python3-debian
- name: Add the official Docker repo (Kali)
ansible.builtin.apt_repository:
repo: deb https://download.docker.com/linux/debian bookworm stable
ansible.builtin.deb822_repository:
components:
- stable
name: docker
signed_by: https://download.docker.com/linux/debian/gpg
suites:
- bookworm
uris:
- https://download.docker.com/linux/debian
- name: Update the package cache
ansible.builtin.apt:
update_cache: true

0 comments on commit a78a4f9

Please sign in to comment.