June 2018
Intermediate to advanced
398 pages
9h
English
Ansible provides the win_user module to manage local Windows user accounts. This is very useful when creating users on active directory domains or Microsoft SQL databases (mssql), or when creating default accounts on normal PCs. The following example will create a user called bassem and give it the password access123. The difference here is that the password is given in plain text and not in the crypted value, as in the Unix-based system:
- hosts: localhost tasks: - name: create user on windows machine win_user: name: bassem password: 'access123' password_never_expires: true account_disabled: no account_locked: no password_expired: no state: present groups: - Administrators - Users
The password_never_expires parameter will ...
Read now
Unlock full access