Make 1password role use consistent filenames on Debian

This commit is contained in:
Kenneth Benzie 2023-02-04 16:12:36 +00:00
parent b3cd84e181
commit 368982b8fa

View File

@ -1,10 +1,13 @@
--- ---
- set_fact:
keyring: /etc/apt/trusted.gpg.d/1password-archive-keyring.gpg
- name: add apt signing key - name: add apt signing key
when: '"WSL" not in ansible_kernel' when: '"WSL" not in ansible_kernel'
become: true become: true
apt_key: apt_key:
url: https://downloads.1password.com/linux/keys/1password.asc url: https://downloads.1password.com/linux/keys/1password.asc
keyring: /etc/apt/trusted.gpg.d/1password-archive-keyring.gpg keyring: '{{keyring}}'
state: present state: present
- when: ansible_machine == 'x86_64' - when: ansible_machine == 'x86_64'
@ -20,9 +23,9 @@
become: true become: true
apt_repository: apt_repository:
repo: >- repo: >-
deb [arch={{arch}} deb [arch={{arch}} signed-by={{keyring}}]
signed-by=/etc/apt/trusted.gpg.d/1password-archive-keyring.gpg]
https://downloads.1password.com/linux/debian/{{arch}} stable main https://downloads.1password.com/linux/debian/{{arch}} stable main
filename: 1password
- name: install gui package - name: install gui package
when: '"WSL" not in ansible_kernel' when: '"WSL" not in ansible_kernel'