Add intdomain variable to simplify configs
This commit is contained in:
parent
05b4c3a9f4
commit
e55dd35605
4 changed files with 9 additions and 8 deletions
|
@ -42,7 +42,7 @@ subnet {{ intnet | ansible.utils.ipaddr('network') }} netmask {{ intnet | ansibl
|
|||
option broadcast-address {{ intnet | ansible.utils.ipaddr('broadcast') }};
|
||||
option routers {{ intnet | ansible.utils.ipaddr(1) | ansible.utils.ipaddr('address')}};
|
||||
|
||||
option domain-name "{{ inventory_hostname.split('.')[1] }}.foo.sh";
|
||||
option domain-name "{{ intdomain }}";
|
||||
option domain-name-servers {{ intnet | ansible.utils.ipaddr(10) | ansible.utils.ipaddr('address') }}, {{ intnet | ansible.utils.ipaddr(11) | ansible.utils.ipaddr('address') }}, {{ intnet | ansible.utils.ipaddr(12) | ansible.utils.ipaddr('address') }};
|
||||
use-host-decl-names on;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue