Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
131 commits
Select commit Hold shift + click to select a range
ad24ff7
gitea secrets aren't necessarily strings
Sep 24, 2021
722c7e1
Update main.yml
Sep 24, 2021
5e3f20a
Merge pull request #55 from JensTimmerman/patch-1
DO1JLR Sep 25, 2021
540c461
delete gh-action cron entry
DO1JLR Sep 27, 2021
e353634
Merge pull request #56 from roles-ansible/action
DO1JLR Sep 27, 2021
b32877d
gitea 1.15.4 released
DO1JLR Oct 12, 2021
6a29a8d
Merge pull request #57 from roles-ansible/1.15.4
DO1JLR Oct 12, 2021
3509f6b
user gitea is now part of gitea group
DO1JLR Oct 17, 2021
872b731
Merge pull request #58 from roles-ansible/groups
DO1JLR Oct 18, 2021
ce5e61b
gitea v1.15.5 available
DO1JLR Oct 24, 2021
23f2b3b
Merge pull request #59 from roles-ansible/1.15.5
DO1JLR Oct 25, 2021
70b7e52
v1.15.6 released
DO1JLR Nov 3, 2021
3f36742
Update main.yml
DO1JLR Nov 3, 2021
bf9357b
Merge pull request #60 from roles-ansible/DO1JLR-patch-1
DO1JLR Nov 5, 2021
13d48ba
v1.16.7 is available
DO1JLR Dec 5, 2021
a8545ac
Merge pull request #61 from roles-ansible/v1.15.7
DO1JLR Dec 5, 2021
49cd8d6
docs: type about extra server args
toredash Dec 8, 2021
ee9e215
Merge pull request #62 from toredash/patch-1
DO1JLR Dec 8, 2021
add77ea
readme: gitea_lfs_enabled→gitea_lfs_server_enabled
ainola Jan 13, 2022
828e0f2
gitea v1.15.10 is available
DO1JLR Jan 16, 2022
06eab17
update linting rules
DO1JLR Jan 16, 2022
7c8e62f
temporary fix action
DO1JLR Jan 16, 2022
068ab9a
Merge pull request #64 from roles-ansible/1.15.10
DO1JLR Jan 16, 2022
ccd5582
Merge pull request #63 from ainola/main
DO1JLR Jan 16, 2022
7b0180b
fixed backup failure
jogrie Jan 23, 2022
9f55d0e
use variable gitea_user and remove trailing spaces
DO1JLR Jan 23, 2022
ae060fb
Merge pull request #66 from jogrie/main
DO1JLR Jan 23, 2022
807f87a
increase playbook version number
DO1JLR Jan 23, 2022
249c306
Merge pull request #67 from roles-ansible/DO1JLR-patch-1
DO1JLR Jan 23, 2022
17d67f3
New gitea version 1.16.0
DO1JLR Feb 5, 2022
5de8742
Merge pull request #68 from roles-ansible/1.16.0
DO1JLR Feb 5, 2022
2f95efd
Fix Typo directorys/directories
DO1JLR Feb 14, 2022
aab8c2d
Merge pull request #70 from roles-ansible/typo
DO1JLR Feb 14, 2022
624ee00
change default gitea_version to latest
DO1JLR Mar 27, 2022
61a9111
update ansible linting to release 'v6'
DO1JLR Mar 27, 2022
c179060
resolve linting errors
DO1JLR Mar 27, 2022
d33e6b1
Merge pull request #71 from roles-ansible/latest
DO1JLR Mar 27, 2022
e3f4b65
update github actions
DO1JLR Apr 7, 2022
1a2b80c
Merge pull request #72 from roles-ansible/actions
DO1JLR Apr 7, 2022
fba0aba
alternative fix for #74
May 3, 2022
2f0a24f
Merge pull request #77 from JensTimmerman/patch-4
DO1JLR May 4, 2022
129674b
starting gitea if backup failed
DO1JLR May 4, 2022
673b662
Merge pull request #79 from roles-ansible/rescue
DO1JLR May 4, 2022
9b6de1f
Fix newest ansible-lint issues
mar1ad Jun 8, 2022
5dca887
Merge pull request #81 from mar1ad/ansible-lint
DO1JLR Jun 8, 2022
843da0c
Allow for user gitea to be added to a list of secondary groups via 'g…
mar1ad Jun 5, 2022
586d277
Merge pull request #80 from mar1ad/gitea_groups
DO1JLR Jun 8, 2022
e63644d
Add check to run task in check mod & a error message.
N07070 Jun 21, 2022
520dbaa
Add check to run task in check mod & a error message.
N07070 Jun 21, 2022
057533f
Merge branch '82-better-errors-on-check-mode' of github.com:N07070/an…
N07070 Jun 21, 2022
db0da06
Fixing linting errors and increment version
DO1JLR Jun 21, 2022
7603c93
gitea_version variable is already defined
DO1JLR Jun 21, 2022
3625ace
Merge pull request #84 from N07070/82-better-errors-on-check-mode
DO1JLR Jun 21, 2022
dce1b80
Added gitea_user_home, gitea_executable_path and gitea_configuration_…
Aug 22, 2022
1e781a6
Change variable value to match behavior of original repo
Aug 22, 2022
fc9ce60
Fix ansible-lint error
Aug 23, 2022
9da125a
Merge pull request #87 from Scalesoft/customizable_paths
DO1JLR Aug 23, 2022
ac0cf63
Explain new Variables in README
DO1JLR Aug 25, 2022
aba6a5e
Merge pull request #88 from roles-ansible/docs
DO1JLR Aug 25, 2022
ff02fd6
update gitea linting
DO1JLR Sep 29, 2022
9e7f0b0
Merge pull request #89 from roles-ansible/lint
DO1JLR Sep 29, 2022
2f6f349
Expand Gitea Repo config options
DO1JLR Jan 24, 2023
fe1a26c
update config
DO1JLR Jan 25, 2023
a1c047b
CHANGING - update acme variables
DO1JLR Jan 26, 2023
bab3431
update issue indexing
DO1JLR Jan 26, 2023
b81a2d8
BREAKING Mail variables updated
DO1JLR Jan 26, 2023
93da14f
Add option for federation feature
DO1JLR Jan 26, 2023
672f7c9
configutre lfs and other options
DO1JLR Jan 26, 2023
47c3ded
Update template layout and increase version
DO1JLR Jan 26, 2023
577faa2
Merge pull request #90 from roles-ansible/t
DO1JLR Jan 26, 2023
8928b24
solve issue with gitea gpg key and download
DO1JLR Jan 26, 2023
85f20a7
Merge pull request #91 from roles-ansible/b
DO1JLR Jan 26, 2023
c28072f
Add link to proxy config
DO1JLR Jan 26, 2023
768f1fd
prepare to use forgejo fork
DO1JLR Jan 26, 2023
975be7e
Adding support for forgejo installation
DO1JLR Jan 27, 2023
1ab7e7d
Explain forgejo installation
DO1JLR Jan 27, 2023
23cb86c
fixing table errors in readme
DO1JLR Jan 27, 2023
f395277
Merge pull request #92 from roles-ansible/forgejo
DO1JLR Jan 27, 2023
76ac0a3
Fix DISABLE_WEBHOOKS value in the template
Feb 8, 2023
aaf5551
Merge pull request #93 from TigerP/fix_template
DO1JLR Feb 9, 2023
df541ae
Fix the documentation regarding the gitea_fqdn variable and where it …
TigerP Feb 9, 2023
fd2b6c6
Merge pull request #94 from TigerP/fix_readme
DO1JLR Feb 9, 2023
35c6d54
Update README.md
DO1JLR Feb 9, 2023
4a4f3db
Update all tasks that download stuff to not become, this fixes some e…
Thulium-Drake Mar 20, 2023
1ecf6d2
Also change gpg key tasks
Thulium-Drake Mar 20, 2023
d30930b
Merge pull request #96 from Thulium-Drake/main
DO1JLR Mar 20, 2023
cd85389
update meta info
DO1JLR Mar 21, 2023
3b2b3a4
update version and list required python packages
DO1JLR Mar 21, 2023
41792b5
Merge pull request #97 from roles-ansible/meta
DO1JLR Mar 21, 2023
51c1bec
Update README.md
DO1JLR Mar 21, 2023
04de741
Merge pull request #98 from roles-ansible/DO1JLR-patch-2
DO1JLR Mar 21, 2023
0daa72d
Merge pull request #95 from roles-ansible/DO1JLR-patch-1
DO1JLR Mar 21, 2023
469c8c8
Add link to l3d.git Collection
DO1JLR Apr 15, 2023
bcd4987
Merge pull request #99 from roles-ansible/c
DO1JLR Apr 15, 2023
05df340
Update README.md with current requirements info
DO1JLR Apr 16, 2023
cccf991
Merge pull request #100 from roles-ansible/DO1JLR-patch-1
DO1JLR Apr 16, 2023
1c27d65
Update README.md
DO1JLR Apr 16, 2023
aff7347
Merge pull request #101 from roles-ansible/DO1JLR-patch-1
DO1JLR Apr 16, 2023
6f47cad
Don't become for gpg verify
Cadair Apr 23, 2023
16a304b
Merge pull request #102 from Cadair/gpg_verify
DO1JLR Apr 25, 2023
dc77f76
feat(actions): Set default values for gitea actions related variables.
benoit-garcia May 8, 2023
8f06e94
feat(actions): Add actions related elements to the configuration temp…
benoit-garcia May 8, 2023
0ea40a2
feat(actions): Add documentation related to actions in the README file.
benoit-garcia May 8, 2023
3f4f8f5
adding gitea_actions_extra variable
DO1JLR May 8, 2023
6b92002
Merge pull request #103 from benoit-garcia/main
DO1JLR May 8, 2023
83cfd8d
fix(config): Fix name of the `actions`section in the configuration file.
benoit-garcia May 9, 2023
c9c2f66
chore(syntax): Reformat the configuration file.
benoit-garcia May 9, 2023
0b153a7
chore(syntax): Always use parameters long form.
benoit-garcia May 9, 2023
04f7c12
chore(repo): Setup dependabot to watch for new releases of Github Act…
benoit-garcia May 9, 2023
d1708b7
Merge pull request #104 from benoit-garcia/main
DO1JLR May 9, 2023
edbdc4f
Merge pull request #105 from benoit-garcia/setup-dependabot
DO1JLR May 9, 2023
8e69239
Bump robertdebock/galaxy-action from 1.2.0 to 1.2.1
dependabot[bot] May 9, 2023
f1e859d
Bump karancode/yamllint-github-action from 2.0.0 to 2.1.1
dependabot[bot] May 9, 2023
b9ecd96
Merge pull request #108 from roles-ansible/dependabot/github_actions/…
DO1JLR May 9, 2023
643d9c3
Merge pull request #109 from roles-ansible/dependabot/github_actions/…
DO1JLR May 9, 2023
446d20c
Create better error message for forgejo releases
DO1JLR May 9, 2023
2efc177
Merge pull request #110 from roles-ansible/v
DO1JLR May 9, 2023
6f07f2c
Repository Upload
DO1JLR May 12, 2023
f3af1cd
Change gitea attachmet config options
DO1JLR May 12, 2023
7aec3c1
filelength
DO1JLR May 12, 2023
438466d
Merge pull request #111 from roles-ansible/fs
DO1JLR May 12, 2023
b27d258
Don't become for gpg verify (also for gitea)
firesoft-de May 14, 2023
a48591b
Merge pull request #112 from firesoft-de/main
DO1JLR May 14, 2023
dbcb113
Improve gpg permissions for forgejo
DO1JLR May 15, 2023
5022106
Merge pull request #113 from roles-ansible/b
DO1JLR May 15, 2023
9d6614e
Refactor setting.Other
DO1JLR Jul 19, 2023
12bbd17
update ansible linting
DO1JLR Jul 19, 2023
2d174e2
Merge pull request #114 from roles-ansible/1.20
DO1JLR Jul 19, 2023
fb4293b
fix typo
quotengrote Jul 19, 2023
666616b
Merge pull request #115 from quotengrote/typo
DO1JLR Jul 23, 2023
b226af6
Update gitea.service.j2
Aug 8, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 0 additions & 9 deletions .ansible-lint

This file was deleted.

9 changes: 9 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
# See https://docs.github.com/en/github/administering-a-repository/configuration-options-for-dependency-updates
version: 2
updates:

- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "daily"
27 changes: 11 additions & 16 deletions .github/workflows/ansible-linting-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,27 +2,22 @@
name: Ansible Lint check

# yamllint disable-line rule:truthy
on:
push:
branches: '*'
pull_request:
branches: '*'
schedule:
- cron: '42 6 * */1 *'
on: [push, pull_request]

jobs:
build:

name: Ansible Lint
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: 'checkout git repo'
uses: actions/checkout@v3
with:
lfs: true
submodules: false
fetch-depth: 0

- name: Lint Ansible Playbook
uses: ansible/ansible-lint-action@master
- name: 'Lint Ansible Playbook'
uses: ansible/ansible-lint-action@v6
with:
targets: "."
# [required]
# Paths to ansible files (i.e., playbooks, tasks, handlers etc..)
args: ""
# [optional]
path: "."
10 changes: 6 additions & 4 deletions .github/workflows/galaxy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,11 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v2
- name: galaxy
uses: robertdebock/[email protected]
- name: 'checkout git repo'
uses: actions/checkout@v3

- name: 'release on galaxy'
uses: robertdebock/[email protected]
with:
galaxy_api_key: ${{ secrets.galaxy_api_key }}
git_branch: 'main'
9 changes: 4 additions & 5 deletions .github/workflows/yamllint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,17 @@ on:
branches: '*'
pull_request:
branches: '*'
schedule:
- cron: '23 6 * */1 *'

jobs:
yamllint:
name: 'Yamllint'
runs-on: ubuntu-latest
steps:
- name: 'Checkout'
uses: actions/checkout@master
- name: 'checkout git repo'
uses: actions/checkout@v3

- name: 'Yamllint'
uses: karancode/yamllint-github-action@master
uses: karancode/yamllint-github-action@v2.1.1
with:
yamllint_file_or_dir: '.'
yamllint_config_filepath: './.yamllint'
4 changes: 2 additions & 2 deletions .yamllint
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
extends: default

rules:
# 170 chars should be enough, but don't fail if a line is longer
# 190 chars should be enough, but don't fail if a line is longer
line-length:
max: 170
max: 190
level: warning
254 changes: 195 additions & 59 deletions README.md

Large diffs are not rendered by default.

139 changes: 123 additions & 16 deletions defaults/main.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,26 @@
---
# Choose between https://forgejo.org/ and https://gitea.io/
gitea_fork: 'gitea' # 'gitea' and 'forgejo' are valid options

# gitea version
# Use 'latest' to auto-update; upgrading past role version may lead to errors.
gitea_version: '1.15.3'
gitea_version: 'latest'
gitea_version_check: true
gitea_gpg_key: '7C9E68152594688862D62AF62D9AE806EC1592E2'
gitea_forgejo_gpg_key: 'EB114F5E6C0DC2BCDD183550A4B61A2DC5923710'
gitea_gpg_server: 'hkps://keys.openpgp.org'
gitea_backup_on_upgrade: false
gitea_backup_location: "{{ gitea_home }}/backups/"
submodules_versioncheck: false

# gitea in the linux world
gitea_group: 'gitea'
# gitea_groups: [] # Optional a list of groups user gitea will be added to
gitea_home: '/var/lib/gitea'
gitea_user_home: '{{ gitea_home }}'
gitea_executable_path: '/usr/local/bin/gitea'
gitea_forgejo_executable_path: '/usr/local/bin/forgejo'
gitea_configuration_path: '/etc/gitea'
gitea_shell: '/bin/false'
gitea_systemd_cap_net_bind_service: false

Expand All @@ -24,38 +33,91 @@ gitea_fqdn: 'localhost'

# Repository (repository)
# -> https://docs.gitea.io/en-us/config-cheat-sheet/#repository-repository
gitea_repository_root: "{{ gitea_home }}/repos"
gitea_force_private: false
gitea_user_repo_limit: '-1'
gitea_disable_http_git: false
gitea_default_branch: 'main'
gitea_default_private: 'last'
gitea_default_repo_units: 'repo.code,repo.releases,repo.issues,repo.pulls,repo.wiki,repo.projects'
gitea_disabled_repo_units: ''
gitea_disable_http_git: false
gitea_disable_stars: false
gitea_enable_push_create_org: false
gitea_enable_push_create_user: false
gitea_force_private: false
gitea_user_repo_limit: '-1'
gitea_repository_root: "{{ gitea_home }}/repos"
gitea_repository_extra_config: ''

# Repository - Upload (repository.upload)
# -> https://docs.gitea.io/en-us/administration/config-cheat-sheet/#repository---upload-repositoryupload
gitea_repository_upload_enabled: true
gitea_repository_upload_max_size: 4
gitea_repository_upload_extra_config: ''

# Repository - Signing (repository.signing)
# -> https://docs.gitea.io/en-us/config-cheat-sheet/#repository---signing-repositorysigning
gitea_enable_repo_signing_options: false
gitea_repo_signing_key: 'default'
gitea_repo_signing_name: ''
gitea_repo_signing_email: ''
gitea_repo_initial_commit: 'always'
gitea_repo_default_trust_model: 'collaborator'
gitea_repo_wiki: 'never'
gitea_repo_crud_actions: 'pubkey, twofa, parentsigned'
gitea_repo_merges: ' pubkey, twofa, basesigned, commitssigned'
gitea_enable_repo_signing_extra: ''

# CORS (cors)
# -> https://docs.gitea.io/en-us/config-cheat-sheet/#cors-cors
gitea_enable_cors: false
gitea_cors_scheme: 'http'
gitea_cors_allow_domain: '*'
gitea_cors_allow_subdomain: false
gitea_cors_methods: 'GET,HEAD,POST,PUT,PATCH,DELETE,OPTIONS'
gitea_cors_max_age: '10m'
gitea_cors_allow_credentials: false
gitea_cors_headers: 'Content-Type,User-Agent'
gitea_cors_x_frame_options: 'SAMEORIGIN'
gitea_cors_extra: ''

# UI (ui)
# -> https://docs.gitea.io/en-us/config-cheat-sheet/#ui-ui
gitea_show_user_email: false
gitea_theme_default: 'gitea'
gitea_themes: 'gitea,arc-green'
gitea_theme_default: 'auto'
gitea_themes: 'auto,gitea,arc-green'
gitea_ui_extra_config: ''

# UI - Metadata (ui.meta)
# -> https://docs.gitea.io/en-us/config-cheat-sheet/#ui---metadata-uimeta
gitea_ui_author: 'Gitea - Git with a cup of tea'
gitea_ui_description: 'Gitea (Git with a cup of tea) is a painless self-hosted Git service written in Go:'
gitea_ui_keywords: 'go,git,self-hosted,gitea,forgejo'
gitea_ui_meta_extra_config: ''

# Server (server)
# -> https://docs.gitea.io/en-us/config-cheat-sheet/#server-server
gitea_protocol: 'http'
gitea_http_domain: "{{ gitea_fqdn }}"
gitea_root_url: "http://{{ gitea_fqdn }}:3000"
gitea_http_listen: '127.0.0.1'
gitea_http_port: '3000'
# gitea_http_letsencrypt_mail: '[email protected]'
gitea_start_ssh: true
gitea_ssh_domain: "{{ gitea_fqdn }}"
gitea_ssh_port: '2222'
gitea_ssh_listen: '0.0.0.0'
gitea_offline_mode: true
gitea_landing_page: 'home'
gitea_lfs_server_enabled: false
gitea_lfs_content_path: "{{ gitea_home }}/data/lfs"
gitea_lfs_jwt_secret: ''
gitea_redirect_other_port: false
gitea_port_to_redirect: '80'
gitea_enable_tls_certs: false
gitea_tls_cert_file: 'https/cert.pem'
gitea_tls_key_file: 'https/key.pem'
gitea_enable_acme: false
gitea_acme_url: ''
gitea_acme_accepttos: false
gitea_acme_directory: 'https'
gitea_acme_email: ''
gitea_acme_ca_root: ''
gitea_server_extra_config: ''

# Database (database)
Expand All @@ -78,12 +140,14 @@ gitea_repo_indexer_exclude: ''
gitea_repo_exclude_vendored: true
gitea_repo_indexer_max_file_size: '1048576'
gitea_indexer_extra_config: ''
gitea_queue_issue_indexer_extra_config: ''

# Security (security)
# -> https://docs.gitea.io/en-us/config-cheat-sheet/#security-security
gitea_secret_key: ''
gitea_internal_token: ''
gitea_disable_git_hooks: true
gitea_disable_webhooks: false
gitea_internal_token: ''
gitea_password_check_pwn: false
gitea_security_extra_config: ''

Expand All @@ -103,14 +167,19 @@ gitea_service_extra_config: ''
# Mailer [mailer]
# -> https://docs.gitea.io/en-us/config-cheat-sheet/#mailer-mailer
gitea_mailer_enabled: false
gitea_mailer_host: 'localhost:25'
gitea_mailer_skip_verify: false
gitea_mailer_tls_enabled: true
gitea_mailer_from: "noreply@{{ gitea_http_domain }}"
gitea_mailer_protocol: 'dummy'
gitea_mailer_smtp_addr: ''
gitea_mailer_smtp_port: ''
gitea_mailer_use_client_cert: false
gitea_mailer_client_cert_file: ''
gitea_mailer_client_key_file: ''
gitea_mailer_force_trust_server_cert: false
gitea_mailer_user: ''
gitea_mailer_password: ''
gitea_mailer_enable_helo: true
gitea_mailer_from: "noreply@{{ gitea_http_domain }}"
gitea_subject_prefix: ''
gitea_mailer_type: smtp
gitea_mailer_send_as_plaintext: false
gitea_mailer_extra_config: ''

# Session (session)
Expand All @@ -119,27 +188,65 @@ gitea_session_provider: 'file'
gitea_session_extra_config: ''

# Picture (picture)
gitea_disable_gravatar: true
# -> https://docs.gitea.io/en-us/config-cheat-sheet/#picture-picture
gitea_picture_extra_config: ''

# Issue and pull request attachments (attachment)
# -> https://docs.gitea.io/en-us/config-cheat-sheet/#issue-and-pull-request-attachments-attachment
gitea_attachment_enabled: true
gitea_attachment_types: '.csv,.docx,.fodg,.fodp,.fods,.fodt,.gif,.gz,.jpeg,.jpg,.log,.md,.mov,.mp4,.odf,.odg,.odp,.ods,.odt,.patch,.pdf,.png,.pptx,.svg,.tgz,.txt,.webm,.xls,.xlsx,.zip'
gitea_attachment_max_size: 4
gitea_attachment_extra_config: ''

# Log (log)
# -> https://docs.gitea.io/en-us/config-cheat-sheet/#log-log
gitea_log_systemd: false
gitea_log_level: 'Warn'
gitea_log_extra_config: ''

# Metrics (metrics)
# -> https://docs.gitea.io/en-us/config-cheat-sheet/#metrics-metrics
gitea_metrics_enabled: false
gitea_metrics_token: ''
gitea_metrics_extra: ''

# OAuth2 (oauth2)
# -> https://docs.gitea.io/en-us/config-cheat-sheet/#oauth2-oauth2
gitea_oauth2_enabled: true
gitea_oauth2_jwt_secret: ''
gitea_oauth2_extra_config: ''

# Federation (federation)
# -> https://docs.gitea.io/en-us/config-cheat-sheet/#federation-federation
gitea_federation_enabled: false
gitea_federation_share_user_stats: false
gitea_federation_extra: ''

# Packages (packages)
# -> https://docs.gitea.io/en-us/config-cheat-sheet/#packages-packages
gitea_packages_enabled: true
gitea_packages_extra: ''

# LFS (lfs)
# -> https://docs.gitea.io/en-us/config-cheat-sheet/#lfs-lfs
gitea_lfs_storage_type: 'local'
gitea_lfs_serve_direct: false
gitea_lfs_content_path: "{{ gitea_home }}/data/lfs"
gitea_lfs_extra: ''

# Actions (actions)
# -> https://docs.gitea.io/en-us/config-cheat-sheet/#actions-actions
gitea_actions_enabled: false
gitea_actions_default_actions_url: "https://gitea.com"
gitea_actions_extra: ''

# Other (other)
# -> https://docs.gitea.io/en-us/config-cheat-sheet/#other-other
gitea_other_show_footer_version: true
gitea_other_show_footer_template_load_time: true
gitea_other_enable_sitemap: true
gitea_other_enable_feed: true

# additional gitea config
gitea_extra_config: ""

Expand Down
6 changes: 3 additions & 3 deletions handlers/main.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
---
- name: "Restart gitea"
become: true
service:
ansible.builtin.service:
name: gitea
state: restarted
when: ansible_service_mgr == "systemd"

- name: "Reload systemd"
become: true
systemd:
ansible.builtin.systemd:
daemon_reload: true
when: ansible_service_mgr == "systemd"

- name: "systemctl restart fail2ban"
- name: "Systemctl restart fail2ban"
become: true
ansible.builtin.systemd:
name: fail2ban
Expand Down
Loading