- crowdsec image -> latest-debian (journalctl); reads host journal (sshd) and Gitea's log file (LePresidente/gitea); LAPI on 127.0.0.1:8080 - gitea also logs to /data/gitea/log/gitea.log (router lines console only) - host: crowdsec-firewall-bouncer-nftables from packagecloud any/any, own nft tables on input+forward hooks; limited to local ssh detections and manual bans until crowdsec_firewall_all_decisions - weekly cscli hub update/upgrade + SIGHUP Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
24 lines
779 B
YAML
24 lines
779 B
YAML
# roles/docker/handlers/main.yml
|
|
# Graceful: new config without dropping connections. If the new config
|
|
# fails to load, Caddy keeps running the old one and the deploy fails.
|
|
- name: reload caddy
|
|
ansible.builtin.command: docker exec caddy-caddy-1 caddy reload --config /etc/caddy/Caddyfile --adapter caddyfile
|
|
|
|
- name: restart crowdsec
|
|
community.docker.docker_compose_v2:
|
|
project_src: /opt/stacks/crowdsec
|
|
files:
|
|
- compose.yml
|
|
state: restarted
|
|
|
|
- name: restart crowdsec-firewall-bouncer
|
|
ansible.builtin.systemd_service:
|
|
name: crowdsec-firewall-bouncer
|
|
state: restarted
|
|
|
|
- name: restart obsidian-livesync
|
|
community.docker.docker_compose_v2:
|
|
project_src: /opt/stacks/obsidian-livesync
|
|
files:
|
|
- docker-compose.yml
|
|
state: restarted |