ansible_role_gitea/tasks/customize_public_files.yml
2023-12-08 12:38:53 +01:00

25 lines
624 B
YAML

---
- name: Create public directory for custom public web files
become: true
ansible.builtin.file:
path: "{{ item }}"
state: directory
owner: "{{ gitea_user }}"
group: "{{ gitea_group }}"
mode: 'u=rwX,g=rX,o='
loop:
- "{{ gitea_custom }}/public"
- name: Transfer custom public web data
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='
failed_when: false
tags: skip_ansible_lint
notify: "Restart gitea"