gitea/ansible/tasks/user.yml

21 lines
453 B
YAML
Raw Permalink Normal View History

2022-02-06 14:30:12 +00:00
---
- 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"