Ensure Gitea is running

This commit is contained in:
2026-09-07 10:54:18 -04:00
parent 86f84d3b70
commit 2c4feb6073
+13
View File
@@ -213,3 +213,16 @@
dest: /etc/fail2ban/jail.d/gitea.conf dest: /etc/fail2ban/jail.d/gitea.conf
mode: "640" mode: "640"
notify: restart_fail2ban notify: restart_fail2ban
- name: Ensure Gitea's compose service is running
ansible.builtin.systemd:
name: compose@gitea
state: started
scope: user
become: true
become_user: git
vars:
gitea_project: >-
{{ podman_compose.git.compose
| selectattr('name', 'equalto', 'gitea') | first | default({}) }}
when: gitea_project.enabled | default(false)