Skip to content

Commit cb640b8

Browse files
authored
Fix ipv4 lookup for firewalld (#440)
Signed-off-by: Vadim Radu <vadim@printarescu.ro>
1 parent fad5c05 commit cb640b8

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

roles/prereq/tasks/main.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,9 @@
120120
groups[server_group] | default([])
121121
+ groups[agent_group] | default([])
122122
)
123-
| map('extract', hostvars, ['ansible_default_ipv4', 'address'])
123+
| map('extract', hostvars)
124+
| selectattr('ansible_default_ipv4', 'defined')
125+
| map(attribute='ansible_default_ipv4.address')
124126
| flatten | unique | list
125127
}}
126128

0 commit comments

Comments
 (0)