Initialer Import der Synology Scripts

This commit is contained in:
root
2026-08-05 08:43:57 +02:00
commit 5e32a7c411
404 changed files with 79932 additions and 0 deletions
+50
View File
@@ -0,0 +1,50 @@
- name: Deploy VMs auf Proxmox
hosts: localhost
gather_facts: false
collections:
- community.proxmox
- community.general
vars:
api_host: "localhost"
api_user: "root@pam"
api_token_id: "ansible"
api_token_secret: "f77b7f8c-8c73-4782-a4ad-8bbf7162e7ca"
node_map:
fhs0: FHS0
fhs1: FHS1
fhs2: FHS2
hs1: HS1
hs2: HS2
hs3: HS3
hs4: HS4
ts01: TS1
vm_json: "/mnt/scripte/VM_DEPLOYMENT/vm_output.json"
ct_json: "/mnt/scripte/VM_DEPLOYMENT/ct_output.json"
tasks:
- name: Load VM JSON
set_fact:
vm_list: "{{ lookup('file', vm_json) | from_json }}"
- name: Create VMs
include_tasks: 001h_sub_create_vm.yaml
loop: "{{ vm_list }}"
loop_control:
loop_var: item
# -----------------------------
# Container
# -----------------------------
- name: Load CT JSON
set_fact:
ct_list: "{{ lookup('file', ct_json) | from_json }}"
- name: Create Containers
include_tasks: 002_sub_create_ct.yaml
loop: "{{ ct_list }}"
loop_control:
loop_var: item