initial role commit

This commit is contained in:
hiperman
2025-11-28 20:50:50 -05:00
parent be507897df
commit fdd0c909bd
15 changed files with 1655 additions and 2 deletions

23
tasks/main.yaml Normal file
View File

@@ -0,0 +1,23 @@
---
- name: Gather installed packages for checks later on
ansible.builtin.package_facts:
manager: "auto"
- name: Deploy optional fail2ban rules
ansible.builtin.include_tasks: setup-fail2ban.yaml
when: gitea_fail2ban_enabled | bool
- name: Install the Gitea compose stack
ansible.builtin.import_tasks: setup-compose.yaml
- name: Restore data from backup
ansible.builtin.include_tasks: restore.yaml
when: gitea_restore_backup | bool
- name: Run handlers
ansible.builtin.meta: flush_handlers
- name: Create or remove Gitea users
ansible.builtin.include_tasks: manage_users.yaml
when: gitea_users | length > 0