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

Replace ansibles apt-key module (deprecated) #21

Merged
merged 5 commits into from
Aug 14, 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
13 changes: 9 additions & 4 deletions installer/install_scripts/install_pre.yml
Original file line number Diff line number Diff line change
Expand Up @@ -226,19 +226,24 @@

#Add repositories
- name: "RITA Pre: Add Docker Ubuntu GPG apt key."
apt_key:
# Note that apt-key is deprecated and that directly downloading the key to trusted.gpg.d WITH A .asc EXTENSION is the correct way now.
get_url:
url: https://download.docker.com/linux/ubuntu/gpg
state: present
dest: /etc/apt/trusted.gpg.d/docker-ubuntu.asc
mode: '0644'
force: true
when: ( ansible_distribution == 'Ubuntu' )
tags:
- packages
- linux
- linuxdeb

- name: "RITA Pre: Add Docker Debian GPG apt key."
apt_key:
get_url:
url: https://download.docker.com/linux/debian/gpg
state: present
dest: /etc/apt/trusted.gpg.d/docker-debian.asc
mode: '0644'
force: true
when: ( ansible_distribution == 'Debian' or ansible_distribution == 'Kali' or ansible_distribution == 'Pop!_OS' or ansible_distribution == 'Zorin OS' )
tags:
- packages
Expand Down