Compare commits
3 Commits
59c5347ffb
...
2fdf1d7a25
Author | SHA1 | Date | |
---|---|---|---|
2fdf1d7a25 | |||
aac3f53d95 | |||
37ec31b97d |
@ -48,13 +48,11 @@ gitea_config:
|
|||||||
root_path: /var/log/gitea
|
root_path: /var/log/gitea
|
||||||
mode: file
|
mode: file
|
||||||
access: file
|
access: file
|
||||||
macaron: file
|
|
||||||
router: file
|
router: file
|
||||||
redirect_macaron_log: true
|
|
||||||
log.console:
|
log.console:
|
||||||
colorize: no
|
colorize: no
|
||||||
service:
|
service:
|
||||||
disable_registration: yes
|
register_manual_confirm: true
|
||||||
|
|
||||||
gitea_var_tree:
|
gitea_var_tree:
|
||||||
- "{{ gitea_var_path }}"
|
- "{{ gitea_var_path }}"
|
||||||
|
@ -49,6 +49,12 @@
|
|||||||
notify:
|
notify:
|
||||||
- restart gitea
|
- restart gitea
|
||||||
|
|
||||||
|
- name: set environment
|
||||||
|
lineinfile:
|
||||||
|
path: /etc/environment
|
||||||
|
regexp: ^GITEA_WORK_DIR
|
||||||
|
line: "GITEA_WORK_DIR=\"{{ gitea_var_path }}\""
|
||||||
|
|
||||||
- name: configure systemd unit
|
- name: configure systemd unit
|
||||||
template:
|
template:
|
||||||
src: gitea.service.j2
|
src: gitea.service.j2
|
||||||
|
@ -10,3 +10,4 @@
|
|||||||
notify:
|
notify:
|
||||||
- restart gitea
|
- restart gitea
|
||||||
retries: 3
|
retries: 3
|
||||||
|
when: gitea_version != gitea_local_version
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
|
|
||||||
- name: set gitea_installed
|
- name: set gitea_installed
|
||||||
set_fact:
|
set_fact:
|
||||||
gitea_installed: st.stat.exists
|
gitea_installed: "{{ st.stat.exists | bool }}"
|
||||||
|
|
||||||
- block:
|
- block:
|
||||||
- name: determine latest version
|
- name: determine latest version
|
||||||
@ -36,7 +36,7 @@
|
|||||||
- name: set gitea_local_version to 0
|
- name: set gitea_local_version to 0
|
||||||
set_fact:
|
set_fact:
|
||||||
gitea_local_version: "0"
|
gitea_local_version: "0"
|
||||||
when: not gitea_installed | bool
|
when: not (gitea_installed | bool)
|
||||||
|
|
||||||
- block:
|
- block:
|
||||||
- name: get checksums
|
- name: get checksums
|
||||||
|
@ -37,9 +37,9 @@ server {
|
|||||||
{% if gitea_ssl_enabled is defined and
|
{% if gitea_ssl_enabled is defined and
|
||||||
gitea_ssl_enabled %}
|
gitea_ssl_enabled %}
|
||||||
server {
|
server {
|
||||||
listen 443 ssl;
|
listen 443 ssl http2;
|
||||||
{% if ansible_all_ipv6_addresses | length %}
|
{% if ansible_all_ipv6_addresses | length %}
|
||||||
listen [::]:443 ssl;
|
listen [::]:443 ssl http2;
|
||||||
{% endif %}
|
{% endif %}
|
||||||
server_name {{ gitea_domain }};
|
server_name {{ gitea_domain }};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user