Add intdomain variable to simplify configs
This commit is contained in:
parent
05b4c3a9f4
commit
e55dd35605
4 changed files with 9 additions and 8 deletions
|
@ -3,6 +3,7 @@
|
|||
mem_size: 512
|
||||
|
||||
intnet: "{{ network_interfaces[0].ipaddr + '/' + network_interfaces[0].netmask }}"
|
||||
intdomain: "{{ inventory_hostname.split('.')[1:] | join('.') }}"
|
||||
|
||||
network_vip_interfaces:
|
||||
- device: vio0
|
||||
|
@ -43,7 +44,7 @@ unbound_zones:
|
|||
{% else -%}
|
||||
{{ reverse[:-1] | split('.', 1) | last -}}
|
||||
{% endif -%}
|
||||
- "{{ inventory_hostname.split('.')[1:] | join('.') }}"
|
||||
- "{{ intdomain }}"
|
||||
|
||||
# use custom firewall config
|
||||
firewall_src: pf.conf.gw_dna.j2
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue