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:
@@ -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 }}"
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user