mirror of
https://github.com/roles-ansible/ansible_role_gitea.git
synced 2024-08-16 11:39:50 +02:00
24 lines
653 B
YAML
24 lines
653 B
YAML
|
---
|
||
|
- name: create directory for custom footer
|
||
|
become: true
|
||
|
ansible.builtin.file:
|
||
|
path: "{{ item }}"
|
||
|
state: directory
|
||
|
owner: "{{ gitea_user }}"
|
||
|
group: "{{ gitea_group }}"
|
||
|
mode: 'u=rwX,g=rX,o='
|
||
|
with_items:
|
||
|
- "{{ gitea_custom }}/templates"
|
||
|
- "{{ gitea_custom }}/templates/custom"
|
||
|
|
||
|
- name: transfer custom footer template
|
||
|
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 }}"
|
||
|
mode: '0644'
|
||
|
ignore_errors: true
|
||
|
notify: "Restart gitea"
|