2d9c8b620f
Over a few upgrades, we've managed to break some of the default avatar logos you see when browsing code on opendev.org. After investigating ways to fix this up, we established that there isn't an exposed API for setting these, but we can do a simple query to point to logo files on disk. This implements that. One caveat is that the logos should be PNG files; particiularly we note that SVG files don't work reliably because they don't get served with the image/svg+xml mime-type. Change-Id: Ie6799de2fb27e09f936c488258dc1bd1c638c370
13 lines
431 B
YAML
13 lines
431 B
YAML
- name: Create Gitea Repos and Org
|
|
gitea_create_repos:
|
|
url: "{{ gitea_url }}"
|
|
password: "{{ gitea_root_password }}"
|
|
always_update: "{{ gitea_always_update }}"
|
|
# Lookup runs locally on the calling machine, so doesn't need
|
|
# project-config remotely
|
|
projects: "{{ lookup('file', project_config_src + '/gerrit/projects.yaml') | from_yaml }}"
|
|
|
|
- name: Setup logos
|
|
include_role:
|
|
name: gitea-set-org-logos
|