2021-06-03 21:06:04 +02:00
|
|
|
---
|
2022-09-29 23:09:19 +02:00
|
|
|
- name: Create directory for custom footer
|
2021-06-03 21:06:04 +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 21:06:04 +02:00
|
|
|
- "{{ gitea_custom }}/templates"
|
|
|
|
- "{{ gitea_custom }}/templates/custom"
|
|
|
|
|
2022-09-29 23:09:19 +02:00
|
|
|
- name: Transfer custom footer template
|
2021-06-03 21:06:04 +02:00
|
|
|
become: true
|
|
|
|
ansible.builtin.copy:
|
|
|
|
src: "{{ lookup('first_found', transfer_custom_footer) }}"
|
|
|
|
dest: "{{ gitea_custom }}/templates/custom/extra_links_footer.tmpl"
|
|
|
|
owner: "{{ gitea_user }}"
|
|
|
|
group: "{{ gitea_group }}"
|
2024-03-25 17:55:37 +01:00
|
|
|
mode: '0640'
|
2023-10-29 16:11:12 +01:00
|
|
|
failed_when: false
|
2022-01-16 18:00:52 +01:00
|
|
|
tags: skip_ansible_lint
|
2021-06-03 21:06:04 +02:00
|
|
|
notify: "Restart gitea"
|