| files | ||
| group_vars | ||
| host_vars | ||
| tasks | ||
| templates | ||
| .gitignore | ||
| ansible.cfg | ||
| create_snapshot.yml | ||
| inventory | ||
| manage_vms.yml | ||
| networking.yml | ||
| proxmox.yml | ||
| README.md | ||
| remove_snapshot.yml | ||
| renovate.json | ||
| requirements.txt | ||
| requirements.yml | ||
| rollback_snapshot.yml | ||
Ansible playbooks to kickstart VMs on proxmox
This repository contains all the playbooks and files to setup and manage proxmox.
Installing proxmox
The proxmox.yml playbook installs proxmox on a Node, and if configured adds
that node to the proxmox cluster.
It will also configure all required bridges and vlan interfaces in a way that
proxmox is able to use them.
Managing VMs
Additionally the manage_vms.yml is able to create and destroy VMs on that cluster.
While not all proxmox features are supported by ansible, it at least supports adding
multiple network interfaces (with a static IP through cloud-init).
If a static IP is configured the playbook will also create DNS entries in pihole
(dnsmasq).
When removing a VM all dns entries, as well as zfs volumes will be removed as well.
Creating snapshots
Last but not least there is a playbook to create snapshots for a list of VMs.
ansible-playbook create_snapshot.yml -l ~k3s-c-.* --list-hosts