Compare commits
No commits in common. "2fdf1d7a25c008a135dd91bbea3ee48207226ce9" and "59c5347ffb302b0e7bf4d87cc26d0f7ceff4042c" have entirely different histories.
2fdf1d7a25
...
59c5347ffb
@ -48,11 +48,13 @@ 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:
|
||||||
register_manual_confirm: true
|
disable_registration: yes
|
||||||
|
|
||||||
gitea_var_tree:
|
gitea_var_tree:
|
||||||
- "{{ gitea_var_path }}"
|
- "{{ gitea_var_path }}"
|
||||||
|
@ -49,12 +49,6 @@
|
|||||||
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,4 +10,3 @@
|
|||||||
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 | bool }}"
|
gitea_installed: st.stat.exists
|
||||||
|
|
||||||
- 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 http2;
|
listen 443 ssl;
|
||||||
{% if ansible_all_ipv6_addresses | length %}
|
{% if ansible_all_ipv6_addresses | length %}
|
||||||
listen [::]:443 ssl http2;
|
listen [::]:443 ssl;
|
||||||
{% endif %}
|
{% endif %}
|
||||||
server_name {{ gitea_domain }};
|
server_name {{ gitea_domain }};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user