Compare commits
No commits in common. "3b312e6f9a6f57e82db2ffd9285389864017666c" and "47d9c4c7e7902f1f9bd5ecd4f0986496a0234878" have entirely different histories.
3b312e6f9a
...
47d9c4c7e7
@ -25,7 +25,6 @@
|
||||
- role: autohotkey
|
||||
- role: ferdium
|
||||
- role: firefox
|
||||
- role: fonts
|
||||
- role: obsidian
|
||||
- role: powertoys
|
||||
- role: windows-terminal
|
||||
|
@ -11,20 +11,35 @@
|
||||
path: '{{app_exe}}'
|
||||
register: app_stat
|
||||
|
||||
- name: get installed version
|
||||
when: app_stat.stat.exists == True
|
||||
win_command: '{{app_exe}} --version'
|
||||
register: app_version
|
||||
changed_when: false
|
||||
|
||||
- when: app_stat.stat.exists == True
|
||||
set_fact:
|
||||
installed_version: '{{app_version.stdout.strip()}}'
|
||||
|
||||
- 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}}'
|
||||
|
||||
- name: run installer
|
||||
when: not app_stat.stat.exists
|
||||
win_command: '{{installer_exe}}'
|
||||
- name: get installer version
|
||||
win_shell: |
|
||||
(Get-ItemProperty {{installer_exe}}).VersionInfo.ProductVersion
|
||||
register: installer_product_version
|
||||
changed_when: false
|
||||
|
||||
- name: remove installer
|
||||
win_file:
|
||||
path: '{{installer_exe}}'
|
||||
state: absent
|
||||
# FIXME: The [5:] is to account for a mystery "\e[6 q" prefix, not sure if this
|
||||
# is consistent across machines or some other oddity.
|
||||
- set_fact:
|
||||
installer_version: '{{installer_product_version.stdout.strip()[5:]}}'
|
||||
|
||||
- name: run installer
|
||||
when: installed_version is not defined or installed_version != installer_version
|
||||
win_command: '{{installer_exe}}'
|
||||
|
||||
- name: create start menu shortcut
|
||||
win_shortcut:
|
||||
|
@ -1,5 +0,0 @@
|
||||
---
|
||||
- name: install chocolatey package
|
||||
win_chocolatey:
|
||||
name: nerd-fonts-CascadiaCode
|
||||
state: latest
|
@ -1,7 +1,5 @@
|
||||
---
|
||||
- when: ansible_os_family == 'Darwin'
|
||||
include_tasks: 'Darwin.yaml'
|
||||
- when: ansible_os_family == 'Windows'
|
||||
include_tasks: 'Windows.yaml'
|
||||
- when: ansible_os_family != 'Darwin' and ansible_os_family != 'Windows'
|
||||
include_tasks: 'Linux.yaml'
|
||||
|
Loading…
x
Reference in New Issue
Block a user