Compare commits

..

No commits in common. "2fdf1d7a25c008a135dd91bbea3ee48207226ce9" and "59c5347ffb302b0e7bf4d87cc26d0f7ceff4042c" have entirely different histories.

5 changed files with 7 additions and 12 deletions

View File

@ -48,11 +48,13 @@ gitea_config:
root_path: /var/log/gitea
mode: file
access: file
macaron: file
router: file
redirect_macaron_log: true
log.console:
colorize: no
service:
register_manual_confirm: true
disable_registration: yes
gitea_var_tree:
- "{{ gitea_var_path }}"

View File

@ -49,12 +49,6 @@
notify:
- restart gitea
- name: set environment
lineinfile:
path: /etc/environment
regexp: ^GITEA_WORK_DIR
line: "GITEA_WORK_DIR=\"{{ gitea_var_path }}\""
- name: configure systemd unit
template:
src: gitea.service.j2

View File

@ -10,4 +10,3 @@
notify:
- restart gitea
retries: 3
when: gitea_version != gitea_local_version

View File

@ -6,7 +6,7 @@
- name: set gitea_installed
set_fact:
gitea_installed: "{{ st.stat.exists | bool }}"
gitea_installed: st.stat.exists
- block:
- name: determine latest version
@ -36,7 +36,7 @@
- name: set gitea_local_version to 0
set_fact:
gitea_local_version: "0"
when: not (gitea_installed | bool)
when: not gitea_installed | bool
- block:
- name: get checksums

View File

@ -37,9 +37,9 @@ server {
{% if gitea_ssl_enabled is defined and
gitea_ssl_enabled %}
server {
listen 443 ssl http2;
listen 443 ssl;
{% if ansible_all_ipv6_addresses | length %}
listen [::]:443 ssl http2;
listen [::]:443 ssl;
{% endif %}
server_name {{ gitea_domain }};