feat : Update playbook source and add role

This commit updates the playbook's source to utilize ansible-playbook-homelab and incorporates the ansible-role-debian_common role. The changes include updating VM names and adding a new task for deploying the Debian common role, streamlining the automation process.
This commit is contained in:
2025-12-14 06:54:40 +01:00
parent f954fd25b3
commit ce8d5a7811
2 changed files with 22 additions and 2 deletions

View File

@@ -1,3 +1,4 @@
---
- name: Deploy VM templates
hosts: node0
@@ -88,7 +89,7 @@
# VMs to be created
create_proxmox_vms_list:
- name: dc
- name: dc1
template: 9412
vmid: 1000
memory: 2048
@@ -105,3 +106,18 @@
nameservers:
- 192.168.2.100
- 8.8.8.8
- name: Test common role
hosts: dc1
tasks:
- name: Deploy VMs
ansible.builtin.include_role:
name: ansible-role-debian_common
vars:
# Proxmox credentials
ansible_user: "{{ ciuser }}"