generated from sebclem/ansible-role-template
Fix templates
This commit is contained in:
parent
af1b1c1e7b
commit
3a1266d6a1
@ -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
|
||||
|
@ -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 %}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user