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.
18 lines
382 B
YAML
18 lines
382 B
YAML
---
|
|
- set_fact:
|
|
obsidian_notes_repo: '{{ansible_env.USERPROFILE}}/Documents/Notes'
|
|
|
|
- name: install chocolatey package
|
|
win_chocolatey:
|
|
name: obsidian
|
|
state: latest
|
|
|
|
- name: clone notes repository
|
|
win_git:
|
|
repo: git@github.com:kbenzie/notes.git
|
|
dest: '{{obsidian_notes_repo}}'
|
|
branch: main
|
|
- win_owner:
|
|
path: '{{obsidian_notes_repo}}'
|
|
user: Benie
|