From 7b2d4f8154e6c218b644e1dfc7fcd4ba33b386f3 Mon Sep 17 00:00:00 2001 From: Luke Murphy Date: Mon, 23 Mar 2020 16:21:44 +0100 Subject: [PATCH] Choose right user --- ansible/pre-deploy.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ansible/pre-deploy.yml b/ansible/pre-deploy.yml index 59b511b..42eec4c 100644 --- a/ansible/pre-deploy.yml +++ b/ansible/pre-deploy.yml @@ -80,8 +80,8 @@ - name: Store gitea git user uid/guid set_fact: - gitea_user_uid: "{{ getent_passwd['gitea'][1] }}" - gitea_user_guid: "{{ getent_passwd['gitea'][2] }}" + git_user_uid: "{{ getent_passwd['git'][1] }}" + git_user_guid: "{{ getent_passwd['git'][2] }}" - name: Configure the dokku app environment dokku_config: @@ -111,6 +111,6 @@ SECRET_KEY: "{{ secret_key}}" SSH_DOMAIN: "{{ ssh_domain }}" STARTUP_TIMEOUT: "{{ startup_timeout }}" - USER_GID: "{{ gitea_user_guid }}" - USER_UID: "{{ gitea_user_uid }}" + USER_GID: "{{ git_user_guid }}" + USER_UID: "{{ git_user_uid }}" WHITELIST_URIS: "{{ whitelist_uris }}"