From 25319bfcbd76ab323d8e87316e4fa37ad9b7b9a3 Mon Sep 17 00:00:00 2001 From: pat-s Date: Sun, 3 Mar 2024 14:31:11 +0100 Subject: [PATCH] update public assets path --- tasks/customize_logo.yml | 21 +++++++++++---------- tasks/customize_public_files.yml | 8 ++++---- 2 files changed, 15 insertions(+), 14 deletions(-) diff --git a/tasks/customize_logo.yml b/tasks/customize_logo.yml index c3e8ae7..367a95c 100644 --- a/tasks/customize_logo.yml +++ b/tasks/customize_logo.yml @@ -6,19 +6,20 @@ state: directory owner: "{{ gitea_user }}" group: "{{ gitea_group }}" - mode: 'u=rwX,g=rX,o=' + mode: "u=rwX,g=rX,o=" loop: - "{{ gitea_custom }}/public" - - "{{ gitea_custom }}/public/img" + - "{{ gitea_custom }}/public/assets" + - "{{ gitea_custom }}/public/assets/img" - name: Transfer custom logo.svg become: true ansible.builtin.copy: 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 }}" group: "{{ gitea_group }}" - mode: '0644' + mode: "0644" tags: skip_ansible_lint failed_when: false @@ -26,10 +27,10 @@ become: true ansible.builtin.copy: 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 }}" group: "{{ gitea_group }}" - mode: '0644' + mode: "0644" tags: skip_ansible_lint failed_when: false @@ -37,10 +38,10 @@ become: true ansible.builtin.copy: 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 }}" group: "{{ gitea_group }}" - mode: '0644' + mode: "0644" tags: skip_ansible_lint failed_when: false @@ -48,9 +49,9 @@ become: true ansible.builtin.copy: 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 }}" group: "{{ gitea_group }}" - mode: '0644' + mode: "0644" tags: skip_ansible_lint failed_when: false diff --git a/tasks/customize_public_files.yml b/tasks/customize_public_files.yml index 747a103..5881a3b 100644 --- a/tasks/customize_public_files.yml +++ b/tasks/customize_public_files.yml @@ -6,19 +6,19 @@ state: directory owner: "{{ gitea_user }}" group: "{{ gitea_group }}" - mode: 'u=rwX,g=rX,o=' + mode: "u=rwX,g=rX,o=" loop: - - "{{ gitea_custom }}/public" + - "{{ gitea_custom }}/public/assets/" - name: Transfer custom public web data become: true ansible.builtin.copy: src: "{{ gitea_customize_files_path }}" - dest: "{{ gitea_custom }}/public/" + dest: "{{ gitea_custom }}/public/assets/" owner: "{{ gitea_user }}" group: "{{ gitea_group }}" directory_mode: true - mode: 'u=rwX,g=rX,o=' + mode: "u=rwX,g=rX,o=" failed_when: false tags: skip_ansible_lint notify: "Restart gitea"