From 899e9efc80b3a43c0b9cd01f2533dd64609035a0 Mon Sep 17 00:00:00 2001
From: freezed <git-expect-noreply@freezed.me>
Date: Thu, 5 Jan 2023 15:20:07 +0100
Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A7=20Massive=20inventory=20update?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Put all stuff mentionned in tasks.
For now inventory contains variable to ease maintenance, but it could be better to
store variables in a better place.
TODO: convert invotory INI format in YML (to give a try)
---
 inventory.sample | 86 ++++++++++++++++++++++++++++++------------------
 1 file changed, 54 insertions(+), 32 deletions(-)

diff --git a/inventory.sample b/inventory.sample
index 200534e..6617b7e 100644
--- a/inventory.sample
+++ b/inventory.sample
@@ -1,60 +1,82 @@
 [production]
-node10	ansible_host=192.168.1.10
-node33	ansible_host=192.168.1.33
+server1		ansible_host=<XX.XX.XX.XX>
+server5		ansible_host=<XX.XX.XX.XX>	my_user=<OTHER_USERNAME>	inventory_fqdn=subd.somedomain.ltd
 
-[staging]
-node20	ansible_host=192.168.1.20
-node44	ansible_host=192.168.1.44
+[backup]
+server2		ansible_host=<XX.XX.XX.XX>
+server4		ansible_host=<XX.XX.XX.XX>
+
+[devel]
+server3		ansible_host=<XX.XX.XX.XX>
 
 [station]
-localhost
-node11	ansible_host=192.168.1.11
-node22	ansible_host=192.168.1.22
+station1	ansible_host=192.168.xx.xx
+station3	ansible_host=192.168.xx.xx	my_user=<OTHER_USERNAME>
+station4	ansible_host=192.168.xx.xx
+station5	ansible_host=192.168.xx.xx
 
 
 [gnome]
-node11
+station1
+station5
 
 [mate]
-node2
+station3
+station4
+
+[provider_b]
+server5
+
+[pve]
+server[2:4]
+
+[provider_a]
+server[1:4]
+
+[vps]
+server5
 
 [workstat]
-node11
+station1
+station3
+station5
+
+[web]
+server5
+server1
 
-[physical:children]
-station
+[zfs]
+station1
+station3
+station4
+server[2:4]
 
-[server:children]
-pve
 
 [station:children]
 gnome
 mate
 workstat
 
+[vps:children]
+provider_b
+
 
 [all:vars]
-inventory_fqdn="{{ inventory_hostname }}.local"
-ldp_token="<PUT-YOURS-HERE>"
-ldp_zone="<PUT-YOURS-HERE>"
-my_user="<USERNAME>"
+gateway=<XX.XX.XX.XX>
+inventory_fqdn="{{ inventory_hostname }}.domain.ltd"
+ldp_token=<LDP_TOKEN>
+ldp_zone=<LDP_ZONE>
+timezone="UTC"
 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>"
+backup_user=<BACKUP_USERNAME>
 
 [station:vars]
+inventory_fqdn="{{ inventory_hostname }}.local"
+my_user=<USERNAME>
 timezone="Europe/Paris"
+user_shell=/bin/zsh
 
-[all:vars]
-ldp_token="put-yours-here"
-ldp_zone="put-yours-here"
+[workstation:vars]
+timezone="Europe/Paris"
-- 
GitLab