initial role commit
This commit is contained in:
19
handlers/main.yaml
Normal file
19
handlers/main.yaml
Normal 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
|
||||
Reference in New Issue
Block a user