FEATURE: Setting Proxmox VM up from cloud-init template added

This commit is contained in:
2026-07-12 12:40:36 +00:00
parent 28791acfda
commit 95f059c0a8
2 changed files with 81 additions and 0 deletions
+28
View File
@@ -0,0 +1,28 @@
---
- name: Deploy a virtual machine from a cloud init image
hosts: localhost
gather_facts: false
roles:
- ../roles/basic_proxmox_vm
- name: Basic Proxmox guest deployment
hosts: all
remote_user: ansible
roles:
- ../roles/basic_postinstall
vars_files:
../inventory/group_vars/all/secrets.yaml
vars:
ansible_user_passwd_hash: "{{ ansible_password | password_hash('sha512', 's3edscrj45e6r') }}"
user_passwd_hash: "{{ user_password | password_hash('sha512', 's3ed6123jhgcr') }}"
handlers:
- name: restart ssh-server
service:
name: ssh
state: restarted
- name: restart sshd-server
service:
name: sshd
state: restarted