From de663b64b4592321d6dd31c167c8c35acaa58f3e Mon Sep 17 00:00:00 2001 From: Rene Mewissen Date: Sat, 30 Nov 2024 10:37:13 +0100 Subject: [PATCH] get keys --- roles/jitsimeet/tasks/prepare_system.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/roles/jitsimeet/tasks/prepare_system.yml b/roles/jitsimeet/tasks/prepare_system.yml index 0ac209d..802e0eb 100644 --- a/roles/jitsimeet/tasks/prepare_system.yml +++ b/roles/jitsimeet/tasks/prepare_system.yml @@ -12,7 +12,14 @@ daemon_reload: true when: preinstalled == false or preinstalled is not defined - - name: jitsimeet | import GPG key + - name: jitsimeet | import GPG keys + get_url: + url: "{{ item }}" # required. HTTP, HTTPS, or FTP URL in the form (http|https|ftp)://[user[:pass]]@host.domain[:port]/path + dest: "/etc/apt/keyrings/{{ item | urlsplit('path') | basename | splitext | first}}.asc" # required. Absolute path of where to download the file to. If C(dest) is a directory, either the server provided filename or, if none provided, the base name of the URL on the remote server will be used. If a directory, C(force) has no effect. If C(dest) is a directory, the file will always be downloaded (regardless of the C(force) option), but replaced only if the contents changed.. + loop: + - "https://prosody.im/files/prosody-debian-packages.key" + - "https://download.jitsi.org/jitsi-key.gpg.key" + apt_key: url: "https://download.jitsi.org/jitsi-key.gpg.key" state: present # not required. choices: absent;present. Ensures that the key is present (added) or absent (revoked).