Add macOS.ahk scheduled task

This commit is contained in:
Kenneth Benzie 2022-05-22 10:07:33 +01:00
parent 2eaf11b8a5
commit de8c0a119d
2 changed files with 24 additions and 3 deletions

View File

@ -7,8 +7,27 @@
- name: clone config repo - name: clone config repo
win_git: win_git:
repo: git@code.infektor.net:config/AutoHotKey.git repo: git@code.infektor.net:config/AutoHotKey.git
dest: '{{ansible_env.LOCALAPPDATA}}/AutoHotKey' dest: '{{autohotkey_repo_dir}}'
branch: master branch: master
# TODO: - name: create scheduled task - name: create scheduled task
# win_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

View File

@ -0,0 +1,2 @@
---
autohotkey_repo_dir: '{{ansible_env.LOCALAPPDATA}}/AutoHotKey'