refactor(inventory): rewrite in yaml

This commit is contained in:
VC
2024-07-05 11:53:14 +02:00
parent 4fdc66f707
commit 86d575631c
2 changed files with 200 additions and 105 deletions

200
production.yml Normal file
View File

@@ -0,0 +1,200 @@
---
all:
vars:
ansible_python_interpreter: /usr/bin/python3
router:
hosts:
machinbox.mateu.be:
hypervisors:
hosts:
claude.dmz.mateu.be:
dimitri.dmz.mateu.be:
edelgard.dmz.mateu.be:
borgbackup:
children:
borg_server:
borg_client:
borg_server:
hosts:
edelgard.dmz.mateu.be:
borg_client:
hosts:
muse-HP-EliteBook-820-G2.home.arpa:
borg_backup_path:
- /home
- /etc
borg_backup_hour: 21
borg_backup_minute: 0
baybay-ponay.mateu.be:
borg_backup_path:
- /home
- /etc
borg_backup_excluded_path:
- /home/.snapshots
borg_backup_hour: 19
borg_backup_minute: 30
bt.dmz.mateu.be:
borg_backup_path:
- /etc
- /var/lib/transmission-daemon
web1.dmz.mateu.be:
web2.dmz.mateu.be:
web3.dmz.mateu.be:
mail.dmz.mateu.be:
borg_backup_path:
- /home
- /etc
- /var/lib/mailman
jabber.dmz.mateu.be:
borg_backup_path:
- /etc
- /var/lib/prosody
voice1.dmz.mateu.be:
borg_backup_path:
- /etc
- /var/lib/mumble-server
ror.dmz.mateu.be:
borg_backup_excluded_path:
- /srv/docker/m.nintendojo.fr/public
nut:
children:
nut_server:
nut_client:
nut_server:
hosts:
edelgard.dmz.mateu.be:
nut_client:
hosts:
claude.dmz.mateu.be:
dimitri.dmz.mateu.be:
edelgard.dmz.mateu.be:
webservers:
hosts:
bt.dmz.mateu.be:
web_hostname:
- sonarr.mateu.be
- bt.mateu.be
- btf.mateu.be
web1.dmz.mateu.be:
web_hostname:
- fav.libertus.eu
- rss.libertus.eu
- o.libertus.eu
- blog.libertus.eu
- mail.libertus.eu
- perso.nintendojo.fr
- perso.libertus.eu
- r.mateu.be
- z.libertus.eu
- autodiscover.libertus.eu
web2.dmz.mateu.be:
web_hostname:
- analyse.nintendojo.fr
- nintendojo.fr
- www.nintendojo.fr
- forum.nintendojo.fr
web3.dmz.mateu.be:
web_hostname:
- sebicomics.com
- www.sebicomics.com
ror.dmz.mateu.be:
web_hostname:
- m.nintendojo.fr
jabber.dmz.mateu.be:
web_hostname:
- libertus.eu
- upload.libertus.eu
- xmpp.libertus.eu
voice3.dmz.mateu.be:
web_hostname:
- radio.nintendojo.fr
mail.dmz.mateu.be:
web_hostname:
- imap.libertus.eu
- smtp.libertus.eu
- mm.pipoworld.fr
- mm.nintendojo.fr
munin.dmz.mateu.be:
web_hostname:
- munin.mateu.be
phpservers:
hosts:
web1.dmz.mateu.be:
php_modules: ['opcache', 'mysql', 'mbstring', 'gd', 'intl', 'curl', 'gettext', 'imap', 'zip', 'apcu']
web2.dmz.mateu.be:
php_modules: ['opcache', 'mysql', 'mbstring', 'gd', 'xml', 'bcmath', 'curl', 'imagick']
web3.dmz.mateu.be:
php_modules: ['opcache', 'mysql', 'mbstring', 'gd', 'xml', 'bcmath', 'curl', 'imagick']
dockerservers:
hosts:
ror.dmz.mateu.be:
mariadbservers:
hosts:
web1.dmz.mateu.be
web2.dmz.mateu.be
web3.dmz.mateu.be
pgsqlservers:
hosts:
ror.dmz.mateu.be:
mailservers:
hosts:
mail.dmz.mateu.be:
xmppservers:
hosts:
jabber.dmz.mateu.be:
loadbalancers:
hosts:
haproxy.dmz.mateu.be:
transmission:
hosts:
bt.dmz.mateu.be:
mumbleservers:
hosts:
voice1.dmz.mateu.be:
icecastservers:
hosts:
voice3.dmz.mateu.be:
rsyslogservers:
hosts:
syslog.dmz.mateu.be:
muninservers:
hosts:
munin.dmz.mateu.be:
disabled_munin:
hosts:
baybay-ponay.mateu.be:
muse-HP-EliteBook-820-G2.home.arpa:
unifiservers:
hosts:
unifi.dmz.mateu.be:
ftpservers:
hosts:
ftp.dmz.mateu.be:
domservers:
hosts:
dom.dmz.mateu.be: