mirror of
https://github.com/cwchristerw/tjas-infra
synced 2025-10-13 22:39:41 +00:00
Change interface to variable instead of static interface
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"Dhcp4": {
|
||||
"interfaces-config": {
|
||||
"interfaces": [ "enp0s25.20" ]
|
||||
"interfaces": [ "{{ ansible_facts.interfaces | select('search', '^enp') | first }}.20" ]
|
||||
},
|
||||
"control-socket": {
|
||||
"socket-type": "unix",
|
||||
@@ -69,7 +69,7 @@
|
||||
{
|
||||
"id": 2,
|
||||
"subnet": "192.168.2.0/27",
|
||||
"interface": "enp0s25.20",
|
||||
"interface": "{{ ansible_facts.interfaces | select('search', '^enp') | first }}.20",
|
||||
"pools": [
|
||||
{
|
||||
"pool": "192.168.2.1 - 192.168.2.30"
|
||||
@@ -161,7 +161,7 @@
|
||||
{
|
||||
"id": 69,
|
||||
"subnet": "192.168.69.0/26",
|
||||
"interface": "enp0s25.69",
|
||||
"interface": "{{ ansible_facts.interfaces | select('search', '^enp') | first }}.69",
|
||||
"pools": [
|
||||
{
|
||||
"pool": "192.168.69.1 - 192.168.69.62"
|
||||
|
Reference in New Issue
Block a user