Create shortcut for Ferdium on Windows
This commit is contained in:
parent
e5cc78f6f4
commit
b4685b9d1e
14
roles/ferdium/tasks/Windows.yaml
Normal file
14
roles/ferdium/tasks/Windows.yaml
Normal file
@ -0,0 +1,14 @@
|
||||
---
|
||||
- name: install chocolatey package
|
||||
win_chocolatey:
|
||||
name: ferdium
|
||||
state: latest
|
||||
|
||||
- set_fact:
|
||||
ferdium_exe: 'C:/Program Files/Ferdium/Ferdium.exe'
|
||||
|
||||
- name: create start menu shortcut
|
||||
win_shortcut:
|
||||
src: '{{ferdium_exe}}'
|
||||
dest: '{{ansible_env.ProgramData}}/Microsoft/Windows/Start Menu/Programs/Ferdium.lnk'
|
||||
icon: '{{ferdium_exe}},0'
|
@ -5,11 +5,8 @@
|
||||
name: ferdium
|
||||
state: latest
|
||||
|
||||
- name: install chocolatey package
|
||||
when: ansible_os_family == 'Windows'
|
||||
win_chocolatey:
|
||||
name: ferdium
|
||||
state: latest
|
||||
- when: ansible_os_family == 'Windows'
|
||||
include_tasks: Windows.yaml
|
||||
|
||||
- name: install flatpak package
|
||||
when: ansible_os_family != 'Windows' and
|
||||
|
Loading…
x
Reference in New Issue
Block a user