PBS configuration via ansible

arukashi

Member
Jan 21, 2023
12
12
8
Hello
I'm trying to do basic configuration via Ansible: users, acl, passwords, etc. And i'm kinda stuck with populating users

Looks like user.cfg does not accept comments and it is mandatory to have blank line between each definition of user. Otherwise login is breaking.
So manipulating user.cfg with lineinfile/blockinfile modules is impossible.
I can use shell module to call
Code:
proxmox-backup-manager user create
but when user exists it always shows an error. More to that, with proxmox-backup-manager i can't populate token with defined value
Is there any convenient way to configure PBS via Ansible?
Any help appreciated. Thanks