Switch back to Chocolatey for 1password on Windows
This commit is contained in:
parent
928f9b2cfc
commit
4bc647bcad
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user