mirror of https://github.com/jumpserver/jumpserver
14 lines
371 B
YAML
14 lines
371 B
YAML
|
- hosts: windows
|
||
|
gather_facts: yes
|
||
|
tasks:
|
||
|
- name: Add user account.username
|
||
|
ansible.windows.win_user:
|
||
|
vars:
|
||
|
fullname: "{{ account.username }}"
|
||
|
name: "{{ account.username }}"
|
||
|
password: "{{ account.secret }}"
|
||
|
state: present
|
||
|
password_expired: no
|
||
|
update_password: always
|
||
|
password_never_expires: yes
|