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: