Commit bbb62ed5 authored by nanahira's avatar nanahira

parse connections in script

parent 3ed649e1
...@@ -19,3 +19,7 @@ ...@@ -19,3 +19,7 @@
set_fact: set_fact:
iptables_type: nft iptables_type: nft
when: iptables_type == 'auto' and iptables_type_result.rc == 0 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 { ...@@ -424,8 +424,10 @@ class InventoryBuilder {
ocMetric: host.ocMetric || null, ocMetric: host.ocMetric || null,
ocpasswdLines: host.ocpasswdLines || [], ocpasswdLines: host.ocpasswdLines || [],
gateways: _.values(this.gateways[host.name]), gateways: _.values(this.gateways[host.name]),
connections, // connections,
nullConnections, connectionsString: JSON.stringify(connections),
// nullConnections,
nullConnectionsString: JSON.stringify(nullConnections),
lanInterfaces, lanInterfaces,
localSubnets, localSubnets,
masqInterfaces, 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