From 6ee0e6cca2e181fc549832d5a5ec722004fb7358 Mon Sep 17 00:00:00 2001 From: Tobias Stein Date: Sat, 10 Dec 2022 19:56:38 +0100 Subject: [PATCH] Split inventory --- inventory/dezentrale.yml | 13 +------------ inventory/local.yml | 23 +++++++++++++++++++++++ 2 files changed, 24 insertions(+), 12 deletions(-) create mode 100644 inventory/local.yml diff --git a/inventory/dezentrale.yml b/inventory/dezentrale.yml index 4e9cd5a..0966c3d 100644 --- a/inventory/dezentrale.yml +++ b/inventory/dezentrale.yml @@ -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: diff --git a/inventory/local.yml b/inventory/local.yml new file mode 100644 index 0000000..563f40a --- /dev/null +++ b/inventory/local.yml @@ -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: +