mirror of
https://github.com/k3s-io/k3s-ansible.git
synced 2025-12-25 00:12:37 +01:00
Fix ipv4 lookup for firewalld (#440)
Signed-off-by: Vadim Radu <vadim@printarescu.ro>
This commit is contained in:
@@ -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
|
||||||
}}
|
}}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user