From 267d44b7d4ced0d25795c727161673e9f7aac58b Mon Sep 17 00:00:00 2001 From: "Oleg \"Zmey!\" Vasiliev" Date: Sat, 7 Oct 2023 16:18:07 +0300 Subject: [PATCH] More fixes --- defaults/main.yml | 4 ++-- templates/app.ini.j2 | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/defaults/main.yml b/defaults/main.yml index 8cbc334..83093d5 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -13,12 +13,12 @@ gitea_config: NAME: gitea USER: root security: - INSTALL_LOCK: false + INSTALL_LOCK: "false" SECRET_KEY: INTERNAL_TOKEN: camo: oauth2: - ENABLE: true + ENABLE: "true" log: MODE: console LEVEL: Info diff --git a/templates/app.ini.j2 b/templates/app.ini.j2 index 8b14002..a918abe 100644 --- a/templates/app.ini.j2 +++ b/templates/app.ini.j2 @@ -1,7 +1,8 @@ ;; {{ ansible_managed }} {% for section, settings in gitea_config.items() %} [{{ section }}] +{% set settings = {} if settings == None else settings %} {% for param, value in settings.items() %} -{{ param }} = {{ value }} +{{ param }} = {{ value | d('') }} {% endfor %} {% endfor %}