2021-06-03 22:51:28 +02:00
|
|
|
---
|
2022-09-29 23:09:19 +02:00
|
|
|
- name: Create public directory for custom public web files
|
2021-06-03 22:51:28 +02:00
|
|
|
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 }}/public"
|
|
|
|
|
2022-09-29 23:09:19 +02:00
|
|
|
- name: Transfer custom public web data
|
2021-06-03 22:51:28 +02:00
|
|
|
become: true
|
|
|
|
ansible.builtin.copy:
|
|
|
|
src: "{{ gitea_customize_files_path }}"
|
|
|
|
dest: "{{ gitea_custom }}/public/"
|
|
|
|
owner: "{{ gitea_user }}"
|
|
|
|
group: "{{ gitea_group }}"
|
|
|
|
directory_mode: true
|
|
|
|
mode: 'u=rwX,g=rX,o='
|
|
|
|
ignore_errors: true
|
2022-01-16 18:00:52 +01:00
|
|
|
tags: skip_ansible_lint
|
2021-06-03 22:51:28 +02:00
|
|
|
notify: "Restart gitea"
|