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 }}"
|
group: "{{ gitea_group }}"
|
||||||
tags: theme
|
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
|
# First, remove the css files from public folder, then theme repos
|
||||||
- name: "[THEME] - Remove css files from the css folder"
|
- name: "[THEME] - Remove css files from the css folder"
|
||||||
shell:
|
shell:
|
||||||
|
@ -35,6 +43,8 @@
|
||||||
force: yes
|
force: yes
|
||||||
loop: "{{ gitea_custom_themes }}"
|
loop: "{{ gitea_custom_themes }}"
|
||||||
when: item.enable == 'true'
|
when: item.enable == 'true'
|
||||||
|
become: true
|
||||||
|
become_user: "{{ gitea_user }}"
|
||||||
tags: theme
|
tags: theme
|
||||||
|
|
||||||
- name: "[THEME] - Find css files from different repos and copy them in the public folder"
|
- name: "[THEME] - Find css files from different repos and copy them in the public folder"
|
||||||
|
@ -58,12 +68,3 @@
|
||||||
line: "{{ gitea_ui_config[0] }},{{ theme_name.stdout }}"
|
line: "{{ gitea_ui_config[0] }},{{ theme_name.stdout }}"
|
||||||
notify: Restart gitea
|
notify: Restart gitea
|
||||||
tags: theme
|
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