clone repo as git user (#30)
and fix missing css folder Co-authored-by: meaz <meaz@disroot.org> Reviewed-on: Disroot-Ansible/gitea#30
This commit is contained in:
parent
170bc3dcf2
commit
35bdc8f062
|
@ -8,6 +8,14 @@
|
|||
group: "{{ gitea_group }}"
|
||||
tags: theme
|
||||
|
||||
- name: '[THEME] - Create css dir'
|
||||
file:
|
||||
path: '{{ gitea_theme_dir }}/public/css'
|
||||
state: directory
|
||||
owner: "{{ gitea_user }}"
|
||||
group: "{{ gitea_group }}"
|
||||
tags: theme
|
||||
|
||||
# First, remove the css files from public folder, then theme repos
|
||||
- name: "[THEME] - Remove css files from the css folder"
|
||||
shell:
|
||||
|
@ -35,6 +43,8 @@
|
|||
force: yes
|
||||
loop: "{{ gitea_custom_themes }}"
|
||||
when: item.enable == 'true'
|
||||
become: true
|
||||
become_user: "{{ gitea_user }}"
|
||||
tags: theme
|
||||
|
||||
- name: "[THEME] - Find css files from different repos and copy them in the public folder"
|
||||
|
@ -57,13 +67,4 @@
|
|||
regexp: '^THEMES'
|
||||
line: "{{ gitea_ui_config[0] }},{{ theme_name.stdout }}"
|
||||
notify: Restart gitea
|
||||
tags: theme
|
||||
|
||||
- name: "[THEME] - Change repo ownership"
|
||||
file:
|
||||
path: "{{ gitea_theme_dir }}"
|
||||
state: directory
|
||||
recurse: yes
|
||||
owner: "{{ gitea_user }}"
|
||||
group: "{{ gitea_group }}"
|
||||
tags: theme
|
Loading…
Reference in New Issue