You've already forked gitea
[UNTESTED] added ansible basics
This commit is contained in:
20
ansible/tasks/user.yml
Normal file
20
ansible/tasks/user.yml
Normal file
@@ -0,0 +1,20 @@
|
||||
---
|
||||
- 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"
|
Reference in New Issue
Block a user