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 }}"
|
|
|
|
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"
|
|
|
|
- "{{ gitea_custom }}/public/img"
|
|
|
|
|
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) }}"
|
|
|
|
dest: "{{ gitea_custom }}/public/img/logo.svg"
|
|
|
|
owner: "{{ gitea_user }}"
|
|
|
|
group: "{{ gitea_group }}"
|
|
|
|
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) }}"
|
|
|
|
dest: "{{ gitea_custom }}/public/img/logo.png"
|
|
|
|
owner: "{{ gitea_user }}"
|
|
|
|
group: "{{ gitea_group }}"
|
|
|
|
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) }}"
|
|
|
|
dest: "{{ gitea_custom }}/public/img/favicon.png"
|
|
|
|
owner: "{{ gitea_user }}"
|
|
|
|
group: "{{ gitea_group }}"
|
|
|
|
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) }}"
|
|
|
|
dest: "{{ gitea_custom }}/public/img/apple-touch-icon.png"
|
|
|
|
owner: "{{ gitea_user }}"
|
|
|
|
group: "{{ gitea_group }}"
|
|
|
|
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
|