change things to forgejo

This commit is contained in:
Louis Abel 2024-12-04 13:49:13 -07:00
parent 7ea953b6fe
commit 21a41d680c
Signed by: label
GPG Key ID: 2A6975660E424560
13 changed files with 44 additions and 39 deletions

View File

@ -1,6 +1,6 @@
# Ansible AWX Template: Gitea Management # Ansible AWX Template: Gitea/Forgejo Management
Ansible AWX is the method used for the Rocky Linux infrastructure, as a replacement for using the CLI. This template is used specifically for management of Gitea. Ansible AWX is the method used for the Rocky Linux infrastructure, as a replacement for using the CLI. This template is used specifically for management of Gitea/Forgejo.
## TODO ## TODO
@ -9,7 +9,7 @@ Ansible AWX is the method used for the Rocky Linux infrastructure, as a replacem
## Provides / Information ## Provides / Information
This repository is for Gitea operations and management. This repository is for Gitea/Forgejo operations and management.
``` ```
. .

5
tasks/forgejo.yml Normal file
View File

@ -0,0 +1,5 @@
---
- import_tasks: "tasks/gitea/install.yml"
- import_tasks: "tasks/gitea/configure.yml"
- import_tasks: "tasks/gitea/theme.yml"
...

30
tasks/forgejo/theme.yml Normal file
View File

@ -0,0 +1,30 @@
---
# - name: Deploy all theme files
# ansible.builtin.copy:
# src: "var/lib/gitea/custom/public/css/{{ item }}"
# dest: "/var/lib/gitea/custom/public/css/{{ item }}"
# mode: '0644'
# owner: git
# group: git
# with_items:
# - theme-carbonred.css
# - theme-darkred.css
# - theme-gitea-blue.css
# - theme-gitea-modern.css
# - theme-pitchblack.css
# - theme-earl-grey.css
- name: Deploy RESF assets
ansible.builtin.copy:
src: "var/lib/gitea/custom/public/assets/img/{{ item }}"
dest: "/var/lib/gitea/custom/public/assets/img/{{ item }}"
mode: '0644'
owner: git
group: git
with_items:
- apple-touch-icon.png
- favicon.png
- favicon.svg
- logo.png
- logo.svg
...

1
tasks/gitea Symbolic link
View File

@ -0,0 +1 @@
forgejo

View File

@ -1,5 +0,0 @@
---
- import_tasks: "tasks/gitea/install.yml"
- import_tasks: "tasks/gitea/configure.yml"
- import_tasks: "tasks/gitea/theme.yml"
...

1
tasks/gitea.yml Symbolic link
View File

@ -0,0 +1 @@
forgejo.yml

View File

@ -1,30 +0,0 @@
---
- name: Deploy all theme files
ansible.builtin.copy:
src: "var/lib/gitea/custom/public/css/{{ item }}"
dest: "/var/lib/gitea/custom/public/css/{{ item }}"
mode: '0644'
owner: git
group: git
with_items:
- theme-carbonred.css
- theme-darkred.css
- theme-gitea-blue.css
- theme-gitea-modern.css
- theme-pitchblack.css
- theme-earl-grey.css
- name: Deploy RESF assets
ansible.builtin.copy:
src: "var/lib/gitea/custom/public/assets/img/{{ item }}"
dest: "/var/lib/gitea/custom/public/assets/img/{{ item }}"
mode: '0644'
owner: git
group: git
with_items:
- apple-touch-icon.png
- favicon.png
- favicon.svg
- logo.png
- logo.svg
...

View File

@ -80,7 +80,7 @@ logger.router.MODE = console
[ui] [ui]
DEFAULT_THEME = {{ gitea_default_theme }} DEFAULT_THEME = {{ gitea_default_theme }}
THEMES = {{ gitea_themes }} #THEMES = {{ gitea_themes }}
AUTHOR = {{ gitea_author }} AUTHOR = {{ gitea_author }}
DESCRIPTION = {{ gitea_description }} DESCRIPTION = {{ gitea_description }}
@ -119,3 +119,6 @@ ENABLED = true
[packages] [packages]
ENABLED = {{ gitea_packages }} ENABLED = {{ gitea_packages }}
[webhook]
ALLOWED_HOST_LIST = private