Prepare info in another dict
This commit is contained in:
parent
a467de49cb
commit
5560fd7f3f
@ -20,13 +20,16 @@
|
|||||||
key: git
|
key: git
|
||||||
split: ":"
|
split: ":"
|
||||||
|
|
||||||
- name: Store gitea git user uid/guid in config.env
|
- name: Prepare git user information dictionary
|
||||||
set_fact:
|
set_fact:
|
||||||
git_user_info:
|
git_user_info:
|
||||||
{
|
{
|
||||||
"USER_GID": "{{ getent_passwd['git'][1] }}",
|
"USER_GID": "{{ getent_passwd['git'][1] }}",
|
||||||
"USER_UID": "{{ getent_passwd['git'][2] }}",
|
"USER_UID": "{{ getent_passwd['git'][2] }}",
|
||||||
}
|
}
|
||||||
|
|
||||||
|
- name: Store gitea git user uid/guid in config.env dictionary
|
||||||
|
set_fact:
|
||||||
config: "{{ config | update_env(git_user_info) }}"
|
config: "{{ config | update_env(git_user_info) }}"
|
||||||
|
|
||||||
- name: Output config for debugging purposes
|
- name: Output config for debugging purposes
|
||||||
|
Reference in New Issue
Block a user