From 41e811ec5d3c87ca5a3caffd05f197b2dd579ddb Mon Sep 17 00:00:00 2001 From: freezed <git-expect-noreply@freezed.me> Date: Sun, 1 Jan 2023 02:05:20 +0100 Subject: [PATCH] =?UTF-8?q?=E2=9A=A1=20Backport=20inventory=20reorganisati?= =?UTF-8?q?on?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- inventory.sample | 55 ++++++++++++++++++++++++++++++++---------------- 1 file changed, 37 insertions(+), 18 deletions(-) diff --git a/inventory.sample b/inventory.sample index 4037b1a..200534e 100644 --- a/inventory.sample +++ b/inventory.sample @@ -1,35 +1,54 @@ -[physical] -192.168.1.1 -192.168.1.11 +[production] +node10 ansible_host=192.168.1.10 +node33 ansible_host=192.168.1.33 -[gnome] -192.168.1.11 +[staging] +node20 ansible_host=192.168.1.20 +node44 ansible_host=192.168.1.44 -[mate] -192.168.1.2 +[station] +localhost +node11 ansible_host=192.168.1.11 +node22 ansible_host=192.168.1.22 -[virtual] -192.168.1.2 -192.168.1.22 -[server] -192.168.1.1 -192.168.1.2 +[gnome] +node11 + +[mate] +node2 [workstat] -192.168.1.11 +node11 -[station] -localhost -192.168.1.11 -192.168.1.22 +[physical:children] +station + +[server:children] +pve [station:children] gnome mate workstat + +[all:vars] +inventory_fqdn="{{ inventory_hostname }}.local" +ldp_token="<PUT-YOURS-HERE>" +ldp_zone="<PUT-YOURS-HERE>" +my_user="<USERNAME>" +user_shell=/bin/bash + +[backup:vars] +backup_user="<BACKUP_USERNAME>" + +[pve:vars] + + [server:vars] +gateway="<GATEWAY_IP>" +inventory_fqdn="{{ inventory_hostname }}.domain.tld" timezone="UTC" gateway="<GATEWAY_IP>" -- GitLab