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