From ec6cc7013cb329fd88c7508b4b95c344727d022f Mon Sep 17 00:00:00 2001 From: "Kenneth Benzie (Benie)" Date: Sat, 8 Jul 2023 11:43:54 +0100 Subject: [PATCH] Don't trust apt_repository: anymore Still having issues with 1password on Debian based distros due to mismatching `signed-by` keyring. It appears as if `apt_repository:` is changing the `signed-by` path even though it was explicitly specified in the `repo:` setting. Instead switch to using `copy:` for complete control over the `/etc/apt/sources.list.d/1password.list` file. --- roles/1password/tasks/Debian.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/roles/1password/tasks/Debian.yaml b/roles/1password/tasks/Debian.yaml index 95d26ff..409200d 100644 --- a/roles/1password/tasks/Debian.yaml +++ b/roles/1password/tasks/Debian.yaml @@ -28,11 +28,11 @@ - name: add apt repository when: '"WSL" not in ansible_kernel' become: true - apt_repository: - repo: >- + copy: + content: >- deb [arch={{arch}} signed-by={{keyring}}] https://downloads.1password.com/linux/debian/{{arch}} stable main - filename: 1password + dest: /etc/apt/sources.list.d/1password.list - name: install gui package when: '"WSL" not in ansible_kernel'