From a2cc1eafb6dd9adb87b26881af244a7dc48f0f24 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. --- .gitignore | 3 +-- Ansible/inventory/example_hosts.ini | 30 ----------------------------- Ansible/inventory/hosts.ini | 30 +++++++++++++++++++++++++++++ 3 files changed, 31 insertions(+), 32 deletions(-) delete mode 100644 Ansible/inventory/example_hosts.ini create mode 100644 Ansible/inventory/hosts.ini diff --git a/.gitignore b/.gitignore index 87287e2..78eac4b 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,2 @@ .vscode/ -Ansible/secrets.yml -Ansible/inventory/hosts.ini \ No newline at end of file +Ansible/secrets.yml \ No newline at end of file diff --git a/Ansible/inventory/example_hosts.ini b/Ansible/inventory/example_hosts.ini deleted file mode 100644 index 7a71bb9..0000000 --- a/Ansible/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/Ansible/inventory/hosts.ini b/Ansible/inventory/hosts.ini new file mode 100644 index 0000000..69a5df1 --- /dev/null +++ b/Ansible/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