Switch back to Chocolatey for 1password on Windows

This commit is contained in:
Kenneth Benzie 2025-07-21 09:31:31 +01:00
parent 928f9b2cfc
commit 4bc647bcad

View File

@ -6,26 +6,10 @@
app_exe: '{{ansible_env.LOCALAPPDATA}}/1Password/app/8/1Password.exe'
installer_exe: '{{ansible_env.TEMP}}/1PasswordSetup-latest.exe'
- name: check if already installed
win_stat:
path: '{{app_exe}}'
register: app_stat
- name: download latest installer
when: not app_stat.stat.exists
win_get_url:
url: https://downloads.1password.com/win/1PasswordSetup-latest.exe
dest: '{{installer_exe}}'
environment: '{{proxy_environment}}'
- name: run installer
when: not app_stat.stat.exists
win_command: '{{installer_exe}}'
- name: remove installer
win_file:
path: '{{installer_exe}}'
state: absent
- name: install chocolatey package
win_chocolatey:
state: latest
name: 1password
- name: create start menu shortcut
win_shortcut: