-
Notifications
You must be signed in to change notification settings - Fork 0
/
site.yml
43 lines (35 loc) · 815 Bytes
/
site.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
---
- hosts: giteabp
remote_user: root
tasks:
- name: Download gitea
get_url:
url:
dest: /tmp/gitea
- name: Verify GPG signature
apt_key:
keyserver: pgp.mit.edu
id: 7C9E68152594688862D62AF62D9AE806EC1592E2
- name: Add system group "gitea"
group:
name: gitea
state: present
- name: Create system user gitea
user:
name: gitea
system: yes
createhome: yes
home: /home/gitea
shell: /bin/bash
groups: gitea
- name: Create required folders
file:
path: "/var/lib/{{ item }}"
state: present
mode: 0750
owner: gitea
group: gitea
with_items:
- gitea/custom
- gitea/data
- gitea/log