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

@@ -10,11 +10,15 @@
src: https://repo.piave7.duckdns.org/Jose/ansible_proxmox_VM.git src: https://repo.piave7.duckdns.org/Jose/ansible_proxmox_VM.git
scm: git scm: git
- name: ansible_proxmox_vm - name: ansible-playbook-homelab
src: https://github.com/joshrnoll/ansible-playbook-homelab.git src: https://github.com/joshrnoll/ansible-playbook-homelab.git
scm: git scm: git
# version: master # or a specific tag/branch like 'v1.0.0' # version: master # or a specific tag/branch like 'v1.0.0'
- name: ansible-role-debian_common
src: https://repo.piave7.duckdns.org/Jose/ansible-role-debian_common.git
scm: git
# - name: ansible_samba_domain_member # - name: ansible_samba_domain_member
# src: git@repo.piave7.duckdns.org:Jose/ansible_samba_domain_member.git # <-- Use the SSH URL # src: git@repo.piave7.duckdns.org:Jose/ansible_samba_domain_member.git # <-- Use the SSH URL
# scm: git # scm: git

View File

@@ -1,3 +1,4 @@
---
- name: Deploy VM templates - name: Deploy VM templates
hosts: node0 hosts: node0
@@ -88,7 +89,7 @@
# VMs to be created # VMs to be created
create_proxmox_vms_list: create_proxmox_vms_list:
- name: dc - name: dc1
template: 9412 template: 9412
vmid: 1000 vmid: 1000
memory: 2048 memory: 2048
@@ -105,3 +106,18 @@
nameservers: nameservers:
- 192.168.2.100 - 192.168.2.100
- 8.8.8.8 - 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 }}"