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.
This commit is contained in:
2022-09-10 16:18:21 +01:00
parent 9693194f7f
commit 06b511d823
6 changed files with 40 additions and 5 deletions

View File

@@ -37,7 +37,10 @@
dest: '{{ansible_env.USERPROFILE}}/.config/{{item.name}}'
version: master
with_items: '{{git_config_repos}}'
timeout: 30
- win_owner:
path: '{{ansible_env.USERPROFILE}}/.config/{{item.name}}'
user: Benie
with_items: '{{git_config_repos}}'
# - TODO: install pip packages
# win_pip: