Skip to content

Commit

Permalink
Replace ansibles apt-key module (deprecated) (#21)
Browse files Browse the repository at this point in the history
* Split prep and post tasks into their own playbook

* all playbooks in one command

* Replace ansibles apt-key module (deprecated)

---------

Co-authored-by: Naomi Kramer <[email protected]>
Co-authored-by: Liza Tsibur <[email protected]>
  • Loading branch information
3 people authored Aug 14, 2024
1 parent 530c835 commit ffb694a
Showing 1 changed file with 9 additions and 4 deletions.
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

0 comments on commit ffb694a

Please sign in to comment.