Use different syntax to pass env and register var
This commit is contained in:
parent
a336bb9432
commit
cec21cb34a
@ -19,15 +19,15 @@
|
|||||||
database: passwd
|
database: passwd
|
||||||
key: git
|
key: git
|
||||||
split: ":"
|
split: ":"
|
||||||
|
register: getent_passwd
|
||||||
|
|
||||||
- name: Store gitea git user uid/guid in config.env
|
- name: Store gitea git user uid/guid in config.env
|
||||||
set_fact:
|
set_fact:
|
||||||
config: "{{
|
git_user_info: "{{
|
||||||
config | update_env({
|
'USER_GID': getent_passwd['git'][1],
|
||||||
'USER_GID': getent_passwd['git'][1],
|
'USER_UID': getent_passwd['git'][2]
|
||||||
'USER_UID': getent_passwd['git'][2],
|
|
||||||
})
|
|
||||||
}}"
|
}}"
|
||||||
|
config: "{{ config | update_env(git_user_info) }}"
|
||||||
|
|
||||||
- name: Output config for debugging purposes
|
- name: Output config for debugging purposes
|
||||||
debug:
|
debug:
|
||||||
|
Reference in New Issue
Block a user