[UNTESTED] added ansible basics
This commit is contained in:
1 parent
ff9bb06bfd
commit
550459b77f
5 files changed
+33
No files matched your search
@@ -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