From 623a1d7e307824291c6886e403ab25270628a0fa Mon Sep 17 00:00:00 2001 From: "Kenneth Benzie (Benie)" Date: Sun, 1 May 2022 21:09:03 +0100 Subject: [PATCH] Add autohotkey role for Windows --- main.yaml | 3 +++ roles/autohotkey/tasks/main.yaml | 14 ++++++++++++++ 2 files changed, 17 insertions(+) create mode 100644 roles/autohotkey/tasks/main.yaml diff --git a/main.yaml b/main.yaml index 3725874..c1d598a 100644 --- a/main.yaml +++ b/main.yaml @@ -1,5 +1,6 @@ --- - hosts: localhost + roles: - role: zsh - role: tmux @@ -10,6 +11,8 @@ when: '"WSL" in ansible_kernel' - hosts: windows + roles: - role: neovim - role: git + - role: autohotkey diff --git a/roles/autohotkey/tasks/main.yaml b/roles/autohotkey/tasks/main.yaml new file mode 100644 index 0000000..16f38fc --- /dev/null +++ b/roles/autohotkey/tasks/main.yaml @@ -0,0 +1,14 @@ +--- +- name: install chocolatey package + win_chocolatey: + name: autohotkey + state: latest + +- name: clone config repo + win_git: + repo: git@code.infektor.net:config/AutoHotKey.git + dest: '{{ansible_env.LOCALAPPDATA}}/AutoHotKey' + branch: master + +# TODO: - name: create scheduled task +# win_scheduled_task: