1
0
Fork 0
home-ansible/roles/crowdsec/tasks/main.yml

29 lines
765 B
YAML
Raw Permalink Normal View History

2023-12-02 10:59:11 -05:00
---
- name: Add apt key for crowdsec
apt_key:
url: https://packagecloud.io/crowdsec/crowdsec/gpgkey
state: present
- name: Add crowdsec repository into sources list
apt_repository:
repo: deb https://packagecloud.io/crowdsec/crowdsec/debian bullseye main
state: present
- name: Install crowdsec packages
apt:
name:
- crowdsec
state: present
# sudo cscli lapi register -u http://192.168.1.10:8081 --machine npm-crowdsec
# accept on unraid crowdsec
# sudo systemctl restart crowdsec
# update /etc/crowdsec/acquis.yml
# filenames:
# - ~/data/logs/*.log
# labels:
# type: nginx-proxy-manager#
# cscli collections install crowdsecurity/nginx-proxy-manager
#
# /etc/crowdsec/config.yml
# * listen_uri: 127.0.0.1:8080 # to 8081