From 37ec31b97dd89ea6d5577ffb904f280413016cad Mon Sep 17 00:00:00 2001 From: Ryan Cavicchioni Date: Tue, 30 Aug 2022 07:13:05 -0500 Subject: [PATCH] gitea: open up registration --- roles/gitea/defaults/main.yaml | 4 +--- roles/gitea/tasks/configure.yaml | 6 ++++++ 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/roles/gitea/defaults/main.yaml b/roles/gitea/defaults/main.yaml index 02cee39..77e7cc8 100644 --- a/roles/gitea/defaults/main.yaml +++ b/roles/gitea/defaults/main.yaml @@ -48,13 +48,11 @@ gitea_config: root_path: /var/log/gitea mode: file access: file - macaron: file router: file - redirect_macaron_log: true log.console: colorize: no service: - disable_registration: yes + register_manual_confirm: true gitea_var_tree: - "{{ gitea_var_path }}" diff --git a/roles/gitea/tasks/configure.yaml b/roles/gitea/tasks/configure.yaml index 62496bf..d53f658 100644 --- a/roles/gitea/tasks/configure.yaml +++ b/roles/gitea/tasks/configure.yaml @@ -49,6 +49,12 @@ 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