mirror of
https://github.com/roles-ansible/ansible_role_gitea.git
synced 2024-08-16 11:39:50 +02:00
Merge pull request #151 from pat-s/fix-public-assets
Fix public assets path for Gitea 1.21+
This commit is contained in:
commit
9a0b46c8fd
2 changed files with 15 additions and 14 deletions
|
@ -6,19 +6,20 @@
|
||||||
state: directory
|
state: directory
|
||||||
owner: "{{ gitea_user }}"
|
owner: "{{ gitea_user }}"
|
||||||
group: "{{ gitea_group }}"
|
group: "{{ gitea_group }}"
|
||||||
mode: 'u=rwX,g=rX,o='
|
mode: "u=rwX,g=rX,o="
|
||||||
loop:
|
loop:
|
||||||
- "{{ gitea_custom }}/public"
|
- "{{ gitea_custom }}/public"
|
||||||
- "{{ gitea_custom }}/public/img"
|
- "{{ gitea_custom }}/public/assets"
|
||||||
|
- "{{ gitea_custom }}/public/assets/img"
|
||||||
|
|
||||||
- name: Transfer custom logo.svg
|
- name: Transfer custom logo.svg
|
||||||
become: true
|
become: true
|
||||||
ansible.builtin.copy:
|
ansible.builtin.copy:
|
||||||
src: "{{ lookup('first_found', transfer_custom_logo_logosvg) }}"
|
src: "{{ lookup('first_found', transfer_custom_logo_logosvg) }}"
|
||||||
dest: "{{ gitea_custom }}/public/img/logo.svg"
|
dest: "{{ gitea_custom }}/public/assets/img/logo.svg"
|
||||||
owner: "{{ gitea_user }}"
|
owner: "{{ gitea_user }}"
|
||||||
group: "{{ gitea_group }}"
|
group: "{{ gitea_group }}"
|
||||||
mode: '0644'
|
mode: "0644"
|
||||||
tags: skip_ansible_lint
|
tags: skip_ansible_lint
|
||||||
failed_when: false
|
failed_when: false
|
||||||
|
|
||||||
|
@ -26,10 +27,10 @@
|
||||||
become: true
|
become: true
|
||||||
ansible.builtin.copy:
|
ansible.builtin.copy:
|
||||||
src: "{{ lookup('first_found', transfer_custom_logo_logopng) }}"
|
src: "{{ lookup('first_found', transfer_custom_logo_logopng) }}"
|
||||||
dest: "{{ gitea_custom }}/public/img/logo.png"
|
dest: "{{ gitea_custom }}/public/assets/img/logo.png"
|
||||||
owner: "{{ gitea_user }}"
|
owner: "{{ gitea_user }}"
|
||||||
group: "{{ gitea_group }}"
|
group: "{{ gitea_group }}"
|
||||||
mode: '0644'
|
mode: "0644"
|
||||||
tags: skip_ansible_lint
|
tags: skip_ansible_lint
|
||||||
failed_when: false
|
failed_when: false
|
||||||
|
|
||||||
|
@ -37,10 +38,10 @@
|
||||||
become: true
|
become: true
|
||||||
ansible.builtin.copy:
|
ansible.builtin.copy:
|
||||||
src: "{{ lookup('first_found', transfer_custom_logo_faviconpng) }}"
|
src: "{{ lookup('first_found', transfer_custom_logo_faviconpng) }}"
|
||||||
dest: "{{ gitea_custom }}/public/img/favicon.png"
|
dest: "{{ gitea_custom }}/public/assets/img/favicon.png"
|
||||||
owner: "{{ gitea_user }}"
|
owner: "{{ gitea_user }}"
|
||||||
group: "{{ gitea_group }}"
|
group: "{{ gitea_group }}"
|
||||||
mode: '0644'
|
mode: "0644"
|
||||||
tags: skip_ansible_lint
|
tags: skip_ansible_lint
|
||||||
failed_when: false
|
failed_when: false
|
||||||
|
|
||||||
|
@ -48,9 +49,9 @@
|
||||||
become: true
|
become: true
|
||||||
ansible.builtin.copy:
|
ansible.builtin.copy:
|
||||||
src: "{{ lookup('first_found', transfer_custom_logo_appletouchiconpng) }}"
|
src: "{{ lookup('first_found', transfer_custom_logo_appletouchiconpng) }}"
|
||||||
dest: "{{ gitea_custom }}/public/img/apple-touch-icon.png"
|
dest: "{{ gitea_custom }}/public/assets/img/apple-touch-icon.png"
|
||||||
owner: "{{ gitea_user }}"
|
owner: "{{ gitea_user }}"
|
||||||
group: "{{ gitea_group }}"
|
group: "{{ gitea_group }}"
|
||||||
mode: '0644'
|
mode: "0644"
|
||||||
tags: skip_ansible_lint
|
tags: skip_ansible_lint
|
||||||
failed_when: false
|
failed_when: false
|
||||||
|
|
|
@ -6,19 +6,19 @@
|
||||||
state: directory
|
state: directory
|
||||||
owner: "{{ gitea_user }}"
|
owner: "{{ gitea_user }}"
|
||||||
group: "{{ gitea_group }}"
|
group: "{{ gitea_group }}"
|
||||||
mode: 'u=rwX,g=rX,o='
|
mode: "u=rwX,g=rX,o="
|
||||||
loop:
|
loop:
|
||||||
- "{{ gitea_custom }}/public"
|
- "{{ gitea_custom }}/public/assets/"
|
||||||
|
|
||||||
- name: Transfer custom public web data
|
- name: Transfer custom public web data
|
||||||
become: true
|
become: true
|
||||||
ansible.builtin.copy:
|
ansible.builtin.copy:
|
||||||
src: "{{ gitea_customize_files_path }}"
|
src: "{{ gitea_customize_files_path }}"
|
||||||
dest: "{{ gitea_custom }}/public/"
|
dest: "{{ gitea_custom }}/public/assets/"
|
||||||
owner: "{{ gitea_user }}"
|
owner: "{{ gitea_user }}"
|
||||||
group: "{{ gitea_group }}"
|
group: "{{ gitea_group }}"
|
||||||
directory_mode: true
|
directory_mode: true
|
||||||
mode: 'u=rwX,g=rX,o='
|
mode: "u=rwX,g=rX,o="
|
||||||
failed_when: false
|
failed_when: false
|
||||||
tags: skip_ansible_lint
|
tags: skip_ansible_lint
|
||||||
notify: "Restart gitea"
|
notify: "Restart gitea"
|
||||||
|
|
Loading…
Reference in a new issue