From 703c3c96d878c2948a68d3e9a3d2cb5f6e9160c6 Mon Sep 17 00:00:00 2001 From: Maksym Buz Date: Sun, 24 Aug 2025 17:54:46 +0200 Subject: [PATCH] Adjusted inventory file with the real IP addresses. I do not see the reason to skip local IPs. --- inventory/example_hosts.ini | 30 ------------------------------ inventory/hosts.ini | 30 ++++++++++++++++++++++++++++++ 2 files changed, 30 insertions(+), 30 deletions(-) delete mode 100644 inventory/example_hosts.ini create mode 100644 inventory/hosts.ini diff --git a/inventory/example_hosts.ini b/inventory/example_hosts.ini deleted file mode 100644 index 7a71bb9..0000000 --- a/inventory/example_hosts.ini +++ /dev/null @@ -1,30 +0,0 @@ -[all:vars] -ansible_user = mbuz -ansible_ssh_private_key_file = /home/mbuz/.ssh/id_rsa - -[proxmox] -proxmox-host ansible_host=x.x.x.x - -[docker] -docker-apps ansible_host=x.x.x.x -docker-cloud ansible_host=x.x.x.x - -#[truenas] -#truenas ansible_host=x.x.x.x - -[raspberry_pi] -raspberry-pi ansible_host=x.x.x.x - -[lxc] -ansible ansible_host=x.x.x.x -zabbix-proxy ansible_host=x.x.x.x -localhost ansible_connection=local # for testing playbooks on the control node - -[proxmox_backup] -proxmox-backup ansible_host=x.x.x.x - -# This is a group of groups. It includes all hosts in the 'docker' and 'raspberry_pi' groups. -[ubuntu:children] -docker -raspberry_pi -lxc diff --git a/inventory/hosts.ini b/inventory/hosts.ini new file mode 100644 index 0000000..69a5df1 --- /dev/null +++ b/inventory/hosts.ini @@ -0,0 +1,30 @@ +[all:vars] +ansible_user = mbuz +ansible_ssh_private_key_file = /home/mbuz/.ssh/id_rsa + +[proxmox] +proxmox-host ansible_host=10.0.0.1 + +[docker] +docker-apps ansible_host=10.0.0.101 +docker-cloud ansible_host=10.0.0.102 + +#[truenas] +#truenas ansible_host=10.0.0.200 + +[raspberry_pi] +raspberry-pi ansible_host=10.0.0.5 + +[lxc] +ansible ansible_host=10.0.0.111 +zabbix-proxy ansible_host=10.0.0.110 +pi-hole ansible_host=10.0.0.104 + +[proxmox_backup] +proxmox-backup ansible_host=10.0.0.201 + +# This is a group of groups. It includes all hosts in the 'docker' and 'raspberry_pi' groups. +[ubuntu:children] +docker +raspberry_pi +lxc \ No newline at end of file