Add macOS.ahk scheduled task
This commit is contained in:
parent
2eaf11b8a5
commit
de8c0a119d
@ -7,8 +7,27 @@
|
||||
- name: clone config repo
|
||||
win_git:
|
||||
repo: git@code.infektor.net:config/AutoHotKey.git
|
||||
dest: '{{ansible_env.LOCALAPPDATA}}/AutoHotKey'
|
||||
dest: '{{autohotkey_repo_dir}}'
|
||||
branch: master
|
||||
|
||||
# TODO: - name: create scheduled task
|
||||
# win_scheduled_task:
|
||||
- name: create scheduled task
|
||||
win_scheduled_task:
|
||||
path: Benie
|
||||
name: macOS.ahk
|
||||
state: present
|
||||
enable: true
|
||||
triggers:
|
||||
- type: logon
|
||||
enabled: true
|
||||
- type: registration
|
||||
enabled: true
|
||||
actions:
|
||||
- path: '{{autohotkey_repo_dir}}/macOS.ahk'
|
||||
disallow_start_if_on_batteries: false
|
||||
stop_if_going_on_batteries: false
|
||||
execution_time_limit: PT0S
|
||||
logon_type: interactive_token
|
||||
multiple_instances: 3
|
||||
run_level: highest
|
||||
start_when_available: true
|
||||
wake_to_run: false
|
||||
|
2
roles/autohotkey/vars/main.yaml
Normal file
2
roles/autohotkey/vars/main.yaml
Normal file
@ -0,0 +1,2 @@
|
||||
---
|
||||
autohotkey_repo_dir: '{{ansible_env.LOCALAPPDATA}}/AutoHotKey'
|
Loading…
x
Reference in New Issue
Block a user