Use different syntax to pass env and register var

This commit is contained in:
Luke Murphy 2020-04-15 13:03:23 +02:00
parent a336bb9432
commit cec21cb34a
No known key found for this signature in database
GPG Key ID: 5E2EF5A63E3718CC

View File

@ -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: