- 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