From cec21cb34aaf5493a2d4e2f8e2bdf89c17971c60 Mon Sep 17 00:00:00 2001 From: Luke Murphy Date: Wed, 15 Apr 2020 13:03:23 +0200 Subject: [PATCH] Use different syntax to pass env and register var --- deploy.d/plays/predeploy.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/deploy.d/plays/predeploy.yml b/deploy.d/plays/predeploy.yml index 53beaea..f9c4f54 100644 --- a/deploy.d/plays/predeploy.yml +++ b/deploy.d/plays/predeploy.yml @@ -19,15 +19,15 @@ database: passwd key: git split: ":" + register: getent_passwd - name: Store gitea git user uid/guid in config.env set_fact: - config: "{{ - config | update_env({ - 'USER_GID': getent_passwd['git'][1], - 'USER_UID': getent_passwd['git'][2], - }) + git_user_info: "{{ + 'USER_GID': getent_passwd['git'][1], + 'USER_UID': getent_passwd['git'][2] }}" + config: "{{ config | update_env(git_user_info) }}" - name: Output config for debugging purposes debug: