local/roles/neovim/tasks/Windows.yaml
Kenneth Benzie (Benie) 06b511d823 Set the owner of Git repos on Windows
The `win_git` module clones repos as the current user, which since its
an admin login is the admin. This patch adjusts the `win_owner` to so
that repos are owned by the correct user when being used in a non-admin
capacity.
2022-09-10 16:18:21 +01:00

32 lines
888 B
YAML

---
- set_fact:
nvim_config_dir: '{{ansible_env.LOCALAPPDATA}}/nvim'
- name: install chocolatey packages
win_chocolatey:
name: neovim
state: latest
- name: clone config repo
win_git:
repo: git@code.infektor.net:config/vim.git
dest: '{{nvim_config_dir}}'
version: master
- win_owner:
path: '{{nvim_config_dir}}'
user: Benie
# - TODO: neovim set repo email
# win_git_config:
# - TODO: neovim install pip packages
# win_pip:
# name: '{{neovim_pip_packages}}'
# state: latest
- name: create nvim start menu shortcut
win_shortcut:
src: '{{ansible_env.ChocolateyToolsLocation}}/neovim/nvim-win64/bin/nvim-qt.exe'
dest: '{{ansible_env.ProgramData}}/Microsoft/Windows/Start Menu/Programs/nvim-qt.lnk'
icon: '{{ansible_env.ChocolateyToolsLocation}}/neovim/nvim-win64/bin/nvim-qt.exe,0'
directory: '{{ansible_env.USERPROFILE}}'