Commit bbb62ed5 authored by nanahira's avatar nanahira

parse connections in script

parent 3ed649e1
......@@ -19,3 +19,7 @@
set_fact:
iptables_type: nft
when: iptables_type == 'auto' and iptables_type_result.rc == 0
- name: parse connections
set_fact:
connections: '{{connectionsString | from_json}}'
nullConnections: '{{nullConnectionsString | from_json}}'
......@@ -424,8 +424,10 @@ class InventoryBuilder {
ocMetric: host.ocMetric || null,
ocpasswdLines: host.ocpasswdLines || [],
gateways: _.values(this.gateways[host.name]),
connections,
nullConnections,
// connections,
connectionsString: JSON.stringify(connections),
// nullConnections,
nullConnectionsString: JSON.stringify(nullConnections),
lanInterfaces,
localSubnets,
masqInterfaces,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment