Split inventory

This commit is contained in:
rockstable 2022-12-10 19:56:38 +01:00
parent 89c992b78b
commit 6ee0e6cca2
2 changed files with 24 additions and 12 deletions

View File

@ -1,7 +1,6 @@
all:
vars:
ansible_nopasswd: true
use_apt_cache_for_server: true
# interface for a internet connection
wan_interface: "{{ ansible_default_ipv4.interface }}"
# ip of the server of the installer network
@ -13,17 +12,7 @@ all:
hosts:
hw4f-fai:
# interface to the clients to install
# interface to install the clients
dhcp_interface: ens19
# customized server name
server_name: "hw4f-fai"
# ip of the server of the installer network
hw4f-fai-vagrant:
ansible_host: "192.168.33.9"
#ansible_connection: "local"
#python_interpreter: "/usr/bin/python3"
# interface to the clients to install
dhcp_interface: eth1
# customized server name
server_name: "hw4f-fai-vagrant"
#localhost:

23
inventory/local.yml Normal file
View File

@ -0,0 +1,23 @@
all:
vars:
ansible_nopasswd: true
# interface for a internet connection
wan_interface: "{{ ansible_default_ipv4.interface }}"
# ip of the server of the installer network
server_ip: "192.168.33.8/24"
routers:
- "192.168.33.1"
#nameservers:
fai_config_git: "https://git.dezentrale.cloud/HW4F/fai-config.git"
hosts:
hw4f-fai-vagrant:
ansible_host: "192.168.33.9"
#ansible_connection: "local"
#python_interpreter: "/usr/bin/python3"
# interface to install the clients
dhcp_interface: eth1
# customized server name
server_name: "hw4f-fai-vagrant"
#localhost: