docs: Add granular Proxmox API token permissions to README and fix inventory file paths in LXC playbooks.

This commit is contained in:
2026-01-04 11:18:14 +01:00
parent a529b84a3c
commit 2ff405c96e
3 changed files with 6 additions and 3 deletions

View File

@@ -36,7 +36,10 @@ ansible-galaxy collection install community.general
2. **Create Token**: Go to **API Tokens**, add a token for `ansible@pve` (e.g., `ansible-token`). **Save the Secret!**
3. **Permissions**: Go to **Permissions**, add User Permission for `ansible@pve`:
- Path: `/`
- Role: `Administrator` (or a custom role with VM/CT creation privileges).
- Role: `Administrator` (Easiest)
- **OR** Granular Roles:
- Path: `/` -> `PVEVMAdmin` + `Sys.Audit`
- Path: `/storage/local` (or your storage ID) -> `Datastore.AllocateSpace` + `Datastore.Audit`
### 3. Configure Secrets
Update your `secrets.yml` (do not commit this file!) with the credentials: