Skip to content

Instantly share code, notes, and snippets.

@jonathanmedd
Created December 2, 2019 15:27
Show Gist options
  • Save jonathanmedd/a03cffa3070f0c55722b7fab9f3bfc46 to your computer and use it in GitHub Desktop.
Save jonathanmedd/a03cffa3070f0c55722b7fab9f3bfc46 to your computer and use it in GitHub Desktop.
_9_local_users
---
- 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