I have this vars file:
addvlan:
- vlan: pruebavlan
address: 192.168.10.0
mask: 25
gateway: ????
tag: 1917
And I have this JSON which use the vars of above vars:
"address": "{{address}}",
"mask": {{mask}},
"gateway": "{{gateway}}",
"tag": "{{tag}}",
I need that the gateway will be always the next IP of the address. For example, in the above case, could be 192.168.10.1
Do you know if it's possible or any way to do it?