diff --git a/ansible/roles/gitea/tasks/main.yml b/ansible/roles/gitea/tasks/main.yml index 5e0d563..eef4951 100644 --- a/ansible/roles/gitea/tasks/main.yml +++ b/ansible/roles/gitea/tasks/main.yml @@ -36,3 +36,19 @@ owner: "{{ docker_user.name }}" notify: restart gitea become: true + +- name: Create public images directory + file: + path: "{{ app_data_dir }}/gitea/data/custom/public/img" + state: directory + owner: "{{ docker_user.name }}" + mode: "{{ docker_compose_directory_mask }}" + become: true + +- name: Install custom branding + unarchive: + src: https://gitea.theorangeone.net/api/packages/sys/generic/gitea-branding/latest/branding.zip + dest: "{{ app_data_dir }}/gitea/data/custom/public/img" + remote_src: true + owner: "{{ docker_user.name }}" + become: true