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 }}"
|
name: "{{ gitea_run_user }}"
|
||||||
system: true
|
system: true
|
||||||
shell: /bin/bash
|
shell: /bin/bash
|
||||||
home: /home/"{{ gitea_run_user }}"
|
home: "/home/{{ gitea_run_user }}"
|
||||||
create_home: true
|
create_home: true
|
||||||
|
|
||||||
- name: Create Gitea folders
|
- name: Create Gitea folders
|
||||||
@ -27,7 +27,6 @@
|
|||||||
mode: "{{ item.mode }}"
|
mode: "{{ item.mode }}"
|
||||||
owner: "{{ item.user }}"
|
owner: "{{ item.user }}"
|
||||||
group: "{{ item.group }}"
|
group: "{{ item.group }}"
|
||||||
recurse: true
|
|
||||||
loop: "{{ gitea_init_folders }}"
|
loop: "{{ gitea_init_folders }}"
|
||||||
|
|
||||||
- name: Update Gitea config
|
- name: Update Gitea config
|
||||||
|
@ -4,10 +4,9 @@ APP_NAME = {{ gitea_app_name }}
|
|||||||
RUN_MODE = {{ gitea_run_mode }}
|
RUN_MODE = {{ gitea_run_mode }}
|
||||||
RUN_USER = {{ gitea_run_user }}
|
RUN_USER = {{ gitea_run_user }}
|
||||||
|
|
||||||
{% for section in config %}
|
{% for section in gitea_config %}
|
||||||
{% if section == "" %}
|
|
||||||
[{{ section }}]
|
[{{ section }}]
|
||||||
{% for entry, value in config[section].items() %}
|
{% for entry, value in gitea_config[section].items() %}
|
||||||
{{ entry }} = {{ value }}
|
{{ entry }} = {{ value }}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user