Whitelist the public_ips of every inventory host in crowdsec and keep a LAPI allowlist equal to the whitelist
This commit is contained in:
@@ -0,0 +1,4 @@
|
||||
---
|
||||
crowdsec_whitelist: >-
|
||||
{{ (crowdsec.whitelist | dict2items | rejectattr('value', 'none') | map(attribute='value') | list
|
||||
+ groups['all'] | map('extract', hostvars, 'public_ips') | select('defined') | flatten) | unique }}
|
||||
Reference in New Issue
Block a user