From 8f5798ff133d0e7807520adab3e271204061a1c8 Mon Sep 17 00:00:00 2001 From: L3D Date: Sun, 7 Apr 2024 21:49:23 +0200 Subject: [PATCH] Create documentation about local user --- README.md | 11 +++++++++++ vars/main.yml | 2 +- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 6fec0e9..4f56b60 100644 --- a/README.md +++ b/README.md @@ -378,6 +378,17 @@ As this will only deploy config files, fail2ban already has to be installed or o | `gitea_fail2ban_jail_bantime` | `900` | fail2ban jail `bantime` setting. | | `gitea_fail2ban_jail_action` | `iptables-allports` | fail2ban jail `action` setting. | +### local gitea Users +| variable | option | description | +| -------- | ------ | ----------- | +| ``gitea_users`` | | dict to create local gitea or forgejo users | +| | ``name`` | name for local gitea/forgejo user | +| | ``password`` | user for local git user | +| | ``email`` | email for local git user | +| | ``admin`` | give user admin permissions | +| | ``must_change_password`` | user should change password after first login | +| | ``state`` | set to ``absent`` to delete user | + ### optional customisation You can optionally customize your gitea using this ansible role. We got our information about customisation from [docs.gitea.io/en-us/customizing-gitea](https://docs.gitea.io/en-us/customizing-gitea/). To deploy multiple files we created the ``gitea_custom_search`` variable, that can point to the path where you put the custom gitea files *( default ``"files/host_files/{{ inventory_hostname }}/gitea"``)*. diff --git a/vars/main.yml b/vars/main.yml index 77f92d1..75ad1a7 100644 --- a/vars/main.yml +++ b/vars/main.yml @@ -63,5 +63,5 @@ transfer_custom_footer: - 'files/gitea_footer/extra_links_footer.tmpl' - 'files/extra_links_footer.tmpl' -playbook_version_number: 58 +playbook_version_number: 59 playbook_version_path: 'do1jlr.gitea.version'