From bf6b8aeddaeb1b1322beda3cf39c59fa345c1769 Mon Sep 17 00:00:00 2001 From: Simon Caron <8635747+simoncaron@users.noreply.github.com> Date: Tue, 10 Oct 2023 03:47:09 -0400 Subject: [PATCH] Fix Key & Repo Install Following apt-key deprecation (#15) --- tasks/plex.yml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/tasks/plex.yml b/tasks/plex.yml index 53f8aa1..afc7e4c 100644 --- a/tasks/plex.yml +++ b/tasks/plex.yml @@ -30,15 +30,17 @@ state: present - name: Add Plex apt key (Ubuntu & Debian with systemd) - apt_key: + get_url: url: https://downloads.plex.tv/plex-keys/PlexSign.key - state: present + dest: /etc/apt/keyrings/plexmediaserver.asc + mode: '0644' + force: true - name: Add Plex apt repo (Ubuntu & Debian with systemd) apt_repository: - repo: deb https://downloads.plex.tv/repo/deb public main + repo: deb [signed-by=/etc/apt/keyrings/plexmediaserver.asc] https://downloads.plex.tv/repo/deb public main state: present - changed_when: false + filename: plexmediaserver - name: Apt install Plex apt: