2021-06-03 17:59:14 +02:00
|
|
|
---
|
2022-09-29 23:09:19 +02:00
|
|
|
- name: Create directory for custom logos
|
2021-06-03 17:59:14 +02:00
|
|
|
become: true
|
|
|
|
ansible.builtin.file:
|
|
|
|
path: "{{ item }}"
|
|
|
|
state: directory
|
|
|
|
owner: "{{ gitea_user }}"
|
|
|
|
group: "{{ gitea_group }}"
|
2024-03-03 14:31:11 +01:00
|
|
|
mode: "u=rwX,g=rX,o="
|
2023-10-29 16:11:12 +01:00
|
|
|
loop:
|
2021-06-03 17:59:14 +02:00
|
|
|
- "{{ gitea_custom }}/public"
|
2024-03-03 14:31:11 +01:00
|
|
|
- "{{ gitea_custom }}/public/assets"
|
|
|
|
- "{{ gitea_custom }}/public/assets/img"
|
2021-06-03 17:59:14 +02:00
|
|
|
|
2022-09-29 23:09:19 +02:00
|
|
|
- name: Transfer custom logo.svg
|
2021-06-03 17:59:14 +02:00
|
|
|
become: true
|
|
|
|
ansible.builtin.copy:
|
|
|
|
src: "{{ lookup('first_found', transfer_custom_logo_logosvg) }}"
|
2024-03-03 14:31:11 +01:00
|
|
|
dest: "{{ gitea_custom }}/public/assets/img/logo.svg"
|
2021-06-03 17:59:14 +02:00
|
|
|
owner: "{{ gitea_user }}"
|
|
|
|
group: "{{ gitea_group }}"
|
2024-03-03 14:31:11 +01:00
|
|
|
mode: "0644"
|
2022-01-16 18:00:52 +01:00
|
|
|
tags: skip_ansible_lint
|
2023-10-29 16:11:12 +01:00
|
|
|
failed_when: false
|
2021-06-03 17:59:14 +02:00
|
|
|
|
2022-09-29 23:09:19 +02:00
|
|
|
- name: Transfer custom logo.png
|
2021-06-03 17:59:14 +02:00
|
|
|
become: true
|
|
|
|
ansible.builtin.copy:
|
|
|
|
src: "{{ lookup('first_found', transfer_custom_logo_logopng) }}"
|
2024-03-03 14:31:11 +01:00
|
|
|
dest: "{{ gitea_custom }}/public/assets/img/logo.png"
|
2021-06-03 17:59:14 +02:00
|
|
|
owner: "{{ gitea_user }}"
|
|
|
|
group: "{{ gitea_group }}"
|
2024-03-03 14:31:11 +01:00
|
|
|
mode: "0644"
|
2022-01-16 18:00:52 +01:00
|
|
|
tags: skip_ansible_lint
|
2023-10-29 16:11:12 +01:00
|
|
|
failed_when: false
|
2021-06-03 17:59:14 +02:00
|
|
|
|
2022-09-29 23:09:19 +02:00
|
|
|
- name: Transfer custom favicon.png
|
2021-06-03 17:59:14 +02:00
|
|
|
become: true
|
|
|
|
ansible.builtin.copy:
|
|
|
|
src: "{{ lookup('first_found', transfer_custom_logo_faviconpng) }}"
|
2024-03-03 14:31:11 +01:00
|
|
|
dest: "{{ gitea_custom }}/public/assets/img/favicon.png"
|
2021-06-03 17:59:14 +02:00
|
|
|
owner: "{{ gitea_user }}"
|
|
|
|
group: "{{ gitea_group }}"
|
2024-03-03 14:31:11 +01:00
|
|
|
mode: "0644"
|
2022-01-16 18:00:52 +01:00
|
|
|
tags: skip_ansible_lint
|
2023-10-29 16:11:12 +01:00
|
|
|
failed_when: false
|
2021-06-03 17:59:14 +02:00
|
|
|
|
2022-09-29 23:09:19 +02:00
|
|
|
- name: Transfer custom apple-touch-icon.png
|
2021-06-03 17:59:14 +02:00
|
|
|
become: true
|
|
|
|
ansible.builtin.copy:
|
|
|
|
src: "{{ lookup('first_found', transfer_custom_logo_appletouchiconpng) }}"
|
2024-03-03 14:31:11 +01:00
|
|
|
dest: "{{ gitea_custom }}/public/assets/img/apple-touch-icon.png"
|
2021-06-03 17:59:14 +02:00
|
|
|
owner: "{{ gitea_user }}"
|
|
|
|
group: "{{ gitea_group }}"
|
2024-03-03 14:31:11 +01:00
|
|
|
mode: "0644"
|
2022-01-16 18:00:52 +01:00
|
|
|
tags: skip_ansible_lint
|
2023-10-29 16:11:12 +01:00
|
|
|
failed_when: false
|