Ansible for Proxmox VE · Module 07
~/ansible-proxmox/
├── ansible.cfg
├── requirements.yml
├── site.yml
├── inventory/
│ ├── hosts.yml # the three nodes
│ ├── lab.proxmox.yml # everything else, from the API
│ └── group_vars/
├── playbooks/
│ ├── 20-cluster.yml # forms the cluster
│ └── 30-operations.yml # storage, users, guests, backup
└── roles/pve_node/ # the reusable partProxmox VE
/etc/pve is cluster-wide. pmxcfs distributes it — root’s authorized_keys includedAnsible, as far as that needed
changed=0 is a test result| Topic | Where it belongs |
|---|---|
| Ceph, HA, SDN, QDevice | Proxmox VE Clustering & Shared Storage |
| Cloud-init images, golden templates | a VM lifecycle workshop |
| AWX / Ansible Automation Platform, Semaphore | an Ansible operations workshop |
| Molecule, CI for roles | an Ansible testing workshop |
| Ansible for the guests inside the VMs | a general Ansible course |
Your playbooks currently run from your laptop. That works exactly as long as it is only you.
ansible-lint and --check on every merge requestIn that order.
The bonus exercises go further than the workshop had time for:
ansible.builtin.uriSolutions included. They assume the state you have right now.
https://<node>:8006/pve-docs/api-viewer/ansible-doc <module>Bookmark the third and the fifth. Those are the two you will actually use.
Afterwards, and for anything longer: alexander.wirt@credativ.de
Questions, discussion, and code:
code/ are yours to keepcredativ · Ansible for Proxmox VE