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

19
handlers/main.yaml Normal file
View File

@@ -0,0 +1,19 @@
---
- name: Stop Docker Compose stack
community.docker.docker_compose_v2:
project_src: /opt/gitea
state: stopped
ignore_errors: true
listen: "Deploy Docker Compose stack"
- name: Start Docker Compose stack
community.docker.docker_compose_v2:
project_src: /opt/gitea
state: present
listen: "Deploy Docker Compose stack"
- name: "Restart fail2ban"
become: true
ansible.builtin.service:
name: fail2ban
state: restarted