Fix ipv4 lookup for firewalld (#440)

Signed-off-by: Vadim Radu <vadim@printarescu.ro>
This commit is contained in:
Vadim Radu authored and GitHub committed 2025-09-08 09:52:26 -07:00
1 parent fad5c05cb4
commit cb640b853f
1 file changed
+3 -1
+3 -1
View File
@@ -120,7 +120,9 @@
groups[server_group] | default([]) groups[server_group] | default([])
+ groups[agent_group] | default([]) + groups[agent_group] | default([])
) )
| map('extract', hostvars, ['ansible_default_ipv4', 'address']) | map('extract', hostvars)
| selectattr('ansible_default_ipv4', 'defined')
| map(attribute='ansible_default_ipv4.address')
| flatten | unique | list | flatten | unique | list
}} }}