Ansible for Proxmox VE · Dutch Proxmox Day 2026
formorer)alexander.wirt@credativ.de| min | |||
|---|---|---|---|
| 01 | Ansible in 30 minutes | inventory, ad-hoc, idempotency | 30 |
| 02 | Preparing the nodes | repositories, packages, time | 30 |
| 03 | Forming the cluster | quorum, serial joins | 40 |
| Break | 10 | ||
| 04 | From playbook to role | defaults, handlers, templates | 25 |
| 05 | Operating the cluster | storage, users, a cloud-init guest | 45 |
| 06 | Dynamic inventory | the plugin, tags as groups | 10 |
| 07 | Where to go next | 5 |
/etc/pve is cluster-wide — root’s authorized_keys includedchanged=0 as a test resultansible-doc, the module pagesThose are topics for dedicated follow-ups.
| Machine | Role | Address |
|---|---|---|
desktop |
Ansible control node (your desktop) | 192.168.0.254 |
pve01 |
Proxmox VE node 1 → cluster primary | 192.168.0.1 |
pve02 |
Proxmox VE node 2 | 192.168.0.2 |
pve03 |
Proxmox VE node 3 | 192.168.0.3 |
Log in as root with the password password123 — the same on all three nodes, for SSH and for the web GUI on :8006.
Every participant has an identical, isolated set.
Everything is on the share already mounted on your desktop. Run it once:
~/ansible-proxmox — the project you work in~/ansible-venv — Ansible with the Proxmox collection, put on your PATH~/workshop-slides — these slidesThen open a new terminal, or the PATH change is not in effect.
In the bookmark bar of your browser, put there by deploy.sh:
| Handouts, Exercises | one entry per module |
| Workshop | the page you start on: access, setup, all the PDFs |
| Material | the same documents as a site, with search |
| pve01–03, API viewer | the web GUIs of your own nodes |
Every module has a handout — the reference, with more detail than these slides — and an exercise sheet.
On desktop, in a terminal:
No password and no host key question: deploy.sh handled both. If any of these fail, say so now.
ansible --version looks wrongAnsible runs from a virtualenv on this desktop, and it should already be on your PATH. If the version is older than 2.17, or community.proxmox is missing, you are using the system Ansible instead:
Why a virtualenv: the collection community.proxmox 2.x needs a newer proxmoxer than Debian ships, and the packaged collection is missing two modules we use.
~/ansible-proxmox is not an empty directory:
TODO where the content goesWriting the files yourself works too. The exercise sheets contain everything either way.
credativ · Ansible for Proxmox VE