From d76ad472bce2ad26a07e95276660b9266833769e Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Thu, 23 Feb 2023 21:50:34 +0000 Subject: [PATCH] Make sure git commands are run as the correct user --- ansible/roles/gitlab/tasks/main.yml | 1 - ansible/roles/pve_docker/tasks/tt-rss.yml | 2 ++ 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/ansible/roles/gitlab/tasks/main.yml b/ansible/roles/gitlab/tasks/main.yml index f997702..6b48212 100644 --- a/ansible/roles/gitlab/tasks/main.yml +++ b/ansible/roles/gitlab/tasks/main.yml @@ -28,4 +28,3 @@ repo: https://git.theorangeone.net/sys/gitlab-dater dest: "{{ home }}/gitlab-dater" depth: 1 - become: true diff --git a/ansible/roles/pve_docker/tasks/tt-rss.yml b/ansible/roles/pve_docker/tasks/tt-rss.yml index 433fd6e..4cda53b 100644 --- a/ansible/roles/pve_docker/tasks/tt-rss.yml +++ b/ansible/roles/pve_docker/tasks/tt-rss.yml @@ -32,6 +32,7 @@ depth: 1 register: fever_plugin become: true + become_user: "{{ docker_user.name }}" - name: Install feediron plugin git: @@ -40,6 +41,7 @@ depth: 1 register: feediron_plugin become: true + become_user: "{{ docker_user.name }}" - name: Ensure plugins are owned by {{ docker_user.name }} file: