From ffb694a5afe906573c476073d05c97547c3d867e Mon Sep 17 00:00:00 2001 From: William Stearns Date: Wed, 14 Aug 2024 15:55:02 -0400 Subject: [PATCH] Replace ansibles apt-key module (deprecated) (#21) * 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 Co-authored-by: Liza Tsibur --- installer/install_scripts/install_pre.yml | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/installer/install_scripts/install_pre.yml b/installer/install_scripts/install_pre.yml index 314aa2c..1cd0713 100644 --- a/installer/install_scripts/install_pre.yml +++ b/installer/install_scripts/install_pre.yml @@ -226,9 +226,12 @@ #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 @@ -236,9 +239,11 @@ - 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