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'
|
app_exe: '{{ansible_env.LOCALAPPDATA}}/1Password/app/8/1Password.exe'
|
||||||
installer_exe: '{{ansible_env.TEMP}}/1PasswordSetup-latest.exe'
|
installer_exe: '{{ansible_env.TEMP}}/1PasswordSetup-latest.exe'
|
||||||
|
|
||||||
- name: check if already installed
|
- name: install chocolatey package
|
||||||
win_stat:
|
win_chocolatey:
|
||||||
path: '{{app_exe}}'
|
state: latest
|
||||||
register: app_stat
|
name: 1password
|
||||||
|
|
||||||
- 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: create start menu shortcut
|
- name: create start menu shortcut
|
||||||
win_shortcut:
|
win_shortcut:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user