Infra/ansible/roles/proxmox/tasks/create_user.yml

15 lines
312 B
YAML
Raw Normal View History

2022-04-15 15:51:58 +02:00
- name: Create user
become: "{{ do_become }}"
command:
argv:
- pvesh
- create
- /access/users
- --userid
- "{{ item.username }}@pam"
- --comment
- "Managed by Ansible"
- --password
- "{{ item.password | default(None) }}"
- --output-format=json