Make sure git commands are run as the correct user

This commit is contained in:
Jake Howard 2023-02-23 21:50:34 +00:00
parent 49c77c611c
commit d76ad472bc
Signed by: jake
GPG key ID: 57AFB45680EDD477
2 changed files with 2 additions and 1 deletions

View file

@ -28,4 +28,3 @@
repo: https://git.theorangeone.net/sys/gitlab-dater repo: https://git.theorangeone.net/sys/gitlab-dater
dest: "{{ home }}/gitlab-dater" dest: "{{ home }}/gitlab-dater"
depth: 1 depth: 1
become: true

View file

@ -32,6 +32,7 @@
depth: 1 depth: 1
register: fever_plugin register: fever_plugin
become: true become: true
become_user: "{{ docker_user.name }}"
- name: Install feediron plugin - name: Install feediron plugin
git: git:
@ -40,6 +41,7 @@
depth: 1 depth: 1
register: feediron_plugin register: feediron_plugin
become: true become: true
become_user: "{{ docker_user.name }}"
- name: Ensure plugins are owned by {{ docker_user.name }} - name: Ensure plugins are owned by {{ docker_user.name }}
file: file: