15 lines
312 B
YAML
15 lines
312 B
YAML
|
- 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
|