From ce8d5a7811caf65775e02c902f38c2787c7d2194 Mon Sep 17 00:00:00 2001 From: Jose Date: Sun, 14 Dec 2025 06:54:40 +0100 Subject: [PATCH] =?UTF-8?q?feat=20=E2=9C=A8:=20Update=20playbook=20source?= =?UTF-8?q?=20and=20add=20role?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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. --- roles/requirements.yml | 6 +++++- tasks/testing.yml | 18 +++++++++++++++++- 2 files changed, 22 insertions(+), 2 deletions(-) diff --git a/roles/requirements.yml b/roles/requirements.yml index 3b0b665..3bb0bfa 100644 --- a/roles/requirements.yml +++ b/roles/requirements.yml @@ -10,11 +10,15 @@ src: https://repo.piave7.duckdns.org/Jose/ansible_proxmox_VM.git scm: git -- name: ansible_proxmox_vm +- name: ansible-playbook-homelab src: https://github.com/joshrnoll/ansible-playbook-homelab.git scm: git # 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 # src: git@repo.piave7.duckdns.org:Jose/ansible_samba_domain_member.git # <-- Use the SSH URL # scm: git diff --git a/tasks/testing.yml b/tasks/testing.yml index 3871d93..b4fa3d5 100644 --- a/tasks/testing.yml +++ b/tasks/testing.yml @@ -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 }}" + +