Created
December 2, 2019 15:27
-
-
Save jonathanmedd/a03cffa3070f0c55722b7fab9f3bfc46 to your computer and use it in GitHub Desktop.
_9_local_users
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
- hosts: all | |
tasks: | |
- name: Create new local account | |
win_user: | |
name: "{{ local_account_username }}" | |
fullname: "{{ local_account_fullname }}" | |
password: "{{ local_account_password }}" | |
state: present | |
groups: | |
- Administrators | |
- name: Ensure test_user02 does not exist | |
win_user: | |
name: test_user02 | |
state: absent |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment