Fix templates

This commit is contained in:
SebClem 2023-04-16 14:22:26 +02:00
parent af1b1c1e7b
commit 3a1266d6a1
Signed by: sebclem
GPG Key ID: 5A4308F6A359EA50
2 changed files with 3 additions and 5 deletions

View File

@ -18,7 +18,7 @@
name: "{{ gitea_run_user }}"
system: true
shell: /bin/bash
home: /home/"{{ gitea_run_user }}"
home: "/home/{{ gitea_run_user }}"
create_home: true
- name: Create Gitea folders
@ -27,7 +27,6 @@
mode: "{{ item.mode }}"
owner: "{{ item.user }}"
group: "{{ item.group }}"
recurse: true
loop: "{{ gitea_init_folders }}"
- name: Update Gitea config

View File

@ -4,10 +4,9 @@ APP_NAME = {{ gitea_app_name }}
RUN_MODE = {{ gitea_run_mode }}
RUN_USER = {{ gitea_run_user }}
{% for section in config %}
{% if section == "" %}
{% for section in gitea_config %}
[{{ section }}]
{% for entry, value in config[section].items() %}
{% for entry, value in gitea_config[section].items() %}
{{ entry }} = {{ value }}
{% endfor %}