21 lines
453 B
YAML
21 lines
453 B
YAML
---
|
|
- name: Ensure a Linux group "git" exists
|
|
ansible.builtin.group:
|
|
state: present
|
|
name: git
|
|
system: no
|
|
uid: "{{ GIT_USER_GID }}"
|
|
- name: Ensure a Linux user "git" exists
|
|
ansible.builtin.user:
|
|
state: present
|
|
name: git
|
|
group: git
|
|
password: "!"
|
|
comment: "Gitea"
|
|
system: no
|
|
uid: "{{ GIT_USER_UID }}"
|
|
create_home: no
|
|
generate_ssh_key: yes
|
|
ssh_key_bits: 4096
|
|
ssh_key_comment: "Gitea Host Key"
|