1
1
Fork 0
mirror of https://github.com/roles-ansible/ansible_role_gitea.git synced 2024-08-16 11:39:50 +02:00
ansible_role_gitea/tasks/customize_logo.yml

58 lines
1.6 KiB
YAML
Raw Normal View History

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