Whitelist the public_ips of every inventory host in crowdsec and keep a LAPI allowlist equal to the whitelist

This commit is contained in:
2026-10-08 09:19:51 +00:00
parent d345ccf585
commit fd73949412
4 changed files with 48 additions and 3 deletions
+4
View File
@@ -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 }}