From 54ec2bdbee895133b0d1088803343814a695a168 Mon Sep 17 00:00:00 2001 From: Maxim Vershinin Date: Sun, 23 Aug 2026 17:00:23 +0500 Subject: [PATCH] FEATURE: adds proxmox host to inventory, but excludes it from playbooks/maintain.yaml --- inventory/hosts.yaml | 69 +++++++++++++++++++++++------------------ playbooks/maintain.yaml | 2 +- 2 files changed, 39 insertions(+), 32 deletions(-) diff --git a/inventory/hosts.yaml b/inventory/hosts.yaml index 64b8be8..af45bf2 100644 --- a/inventory/hosts.yaml +++ b/inventory/hosts.yaml @@ -1,34 +1,41 @@ --- -physical: - hosts: - localhost: - ansible_become_password: "{{ ansible_become_passwd }}" - ansible_connection: local - ansible_python_interpreter: "{{ ansible_playbook_python }}" - services_to_run: [] - nfs-server: - ansible_host: 192.168.0.6 +all: + physical: + proxmox-1: + ansible_host: 192.168.0.2 ansible_become_password: "{{ ansible_become_passwd }}" services_to_run: [] - jellyfin: - ansible_host: 192.168.0.8 - ansible_become_password: "{{ ansible_become_passwd }}" - services_to_run: [] - frigate: - ansible_host: 192.168.0.12 - ansible_become_password: "{{ ansible_become_passwd }}" - services_to_run: [] - vs-code: - ansible_host: 192.168.0.16 - ansible_become_password: "{{ ansible_become_passwd }}" - services_to_run: [] - gitea-server: - ansible_host: 192.168.0.39 - ansible_become_password: "{{ ansible_become_passwd }}" - services_to_run: [] - ai-host: - ansible_host: 192.168.0.50 - ansible_become_password: "{{ ansible_become_passwd }}" - services_to_run: - - coder_ai - + virtual: + hosts: + localhost: + ansible_become_password: "{{ ansible_become_passwd }}" + ansible_connection: local + ansible_python_interpreter: "{{ ansible_playbook_python }}" + services_to_run: + - webhook + nfs-server: + ansible_host: 192.168.0.6 + ansible_become_password: "{{ ansible_become_passwd }}" + services_to_run: [] + jellyfin: + ansible_host: 192.168.0.8 + ansible_become_password: "{{ ansible_become_passwd }}" + services_to_run: [] + frigate: + ansible_host: 192.168.0.12 + ansible_become_password: "{{ ansible_become_passwd }}" + services_to_run: [] + vs-code: + ansible_host: 192.168.0.16 + ansible_become_password: "{{ ansible_become_passwd }}" + services_to_run: [] + gitea-server: + ansible_host: 192.168.0.39 + ansible_become_password: "{{ ansible_become_passwd }}" + services_to_run: [] + ai-host: + ansible_host: 192.168.0.50 + ansible_become_password: "{{ ansible_become_passwd }}" + services_to_run: + - coder_ai + diff --git a/playbooks/maintain.yaml b/playbooks/maintain.yaml index 869aac5..9270457 100644 --- a/playbooks/maintain.yaml +++ b/playbooks/maintain.yaml @@ -1,6 +1,6 @@ --- - name: Deploy and set up an LXC container in Proxmox - hosts: all + hosts: virtual remote_user: ansible vars_files: