Compare commits

..

No commits in common. "3b312e6f9a6f57e82db2ffd9285389864017666c" and "47d9c4c7e7902f1f9bd5ecd4f0986496a0234878" have entirely different histories.

4 changed files with 23 additions and 16 deletions

View File

@ -25,7 +25,6 @@
- role: autohotkey - role: autohotkey
- role: ferdium - role: ferdium
- role: firefox - role: firefox
- role: fonts
- role: obsidian - role: obsidian
- role: powertoys - role: powertoys
- role: windows-terminal - role: windows-terminal

View File

@ -11,20 +11,35 @@
path: '{{app_exe}}' path: '{{app_exe}}'
register: app_stat 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 - name: download latest installer
when: not app_stat.stat.exists
win_get_url: win_get_url:
url: https://downloads.1password.com/win/1PasswordSetup-latest.exe url: https://downloads.1password.com/win/1PasswordSetup-latest.exe
dest: '{{installer_exe}}' dest: '{{installer_exe}}'
- name: run installer - name: get installer version
when: not app_stat.stat.exists win_shell: |
win_command: '{{installer_exe}}' (Get-ItemProperty {{installer_exe}}).VersionInfo.ProductVersion
register: installer_product_version
changed_when: false
- name: remove installer # FIXME: The [5:] is to account for a mystery "\e[6 q" prefix, not sure if this
win_file: # is consistent across machines or some other oddity.
path: '{{installer_exe}}' - set_fact:
state: absent 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 - name: create start menu shortcut
win_shortcut: win_shortcut:

View File

@ -1,5 +0,0 @@
---
- name: install chocolatey package
win_chocolatey:
name: nerd-fonts-CascadiaCode
state: latest

View File

@ -1,7 +1,5 @@
--- ---
- when: ansible_os_family == 'Darwin' - when: ansible_os_family == 'Darwin'
include_tasks: 'Darwin.yaml' include_tasks: 'Darwin.yaml'
- when: ansible_os_family == 'Windows'
include_tasks: 'Windows.yaml'
- when: ansible_os_family != 'Darwin' and ansible_os_family != 'Windows' - when: ansible_os_family != 'Darwin' and ansible_os_family != 'Windows'
include_tasks: 'Linux.yaml' include_tasks: 'Linux.yaml'