|
@@ -39,6 +39,8 @@
|
39
|
39
|
with_items:
|
40
|
40
|
- gitea
|
41
|
41
|
- gitea/custom
|
|
42
|
+ - gitea/custom/templates
|
|
43
|
+ - gitea/custom/templates/custom
|
42
|
44
|
- gitea/data
|
43
|
45
|
- gitea/log
|
44
|
46
|
- gitea/repos
|
|
@@ -102,6 +104,38 @@
|
102
|
104
|
owner=root
|
103
|
105
|
group=root
|
104
|
106
|
|
|
107
|
+- name: Add homepage template to gitea
|
|
108
|
+ copy:
|
|
109
|
+ src=data_gitea_custom_templates_home.tmpl
|
|
110
|
+ dest=/data/gitea/custom/templates/home.tmpl
|
|
111
|
+ owner=git
|
|
112
|
+ group=root
|
|
113
|
+ mode=0644
|
|
114
|
+
|
|
115
|
+- name: Add extra links to gitea
|
|
116
|
+ template:
|
|
117
|
+ src=data_gitea_custom_templates_custom_extra_links.j2
|
|
118
|
+ dest=/data/gitea/custom/templates/custom/extra_links.tmpl
|
|
119
|
+ owner=git
|
|
120
|
+ group=root
|
|
121
|
+ mode=0644
|
|
122
|
+
|
|
123
|
+- name: Add robots.txt to gitea
|
|
124
|
+ copy:
|
|
125
|
+ src=data_gitea_custom_robots.txt
|
|
126
|
+ dest=/data/gitea/custom/robots.txt
|
|
127
|
+ owner=git
|
|
128
|
+ group=root
|
|
129
|
+ mode=0644
|
|
130
|
+
|
|
131
|
+- name: Add custom footer to gitea
|
|
132
|
+ copy:
|
|
133
|
+ src=data_gitea_custom_templates_custom_footer.tmpl
|
|
134
|
+ dest=/data/gitea/custom/templates/custom/footer.tmpl
|
|
135
|
+ owner=git
|
|
136
|
+ group=root
|
|
137
|
+ mode=0644
|
|
138
|
+
|
105
|
139
|
- name: Register new gitea service
|
106
|
140
|
systemd: name=gitea daemon_reload=yes enabled=yes
|
107
|
141
|
|