|
|
@ -37,7 +37,7 @@ options:
|
|
|
|
aliases: []
|
|
|
|
aliases: []
|
|
|
|
password:
|
|
|
|
password:
|
|
|
|
description:
|
|
|
|
description:
|
|
|
|
- Password for the user
|
|
|
|
- Password for the user (plain text)
|
|
|
|
required: true
|
|
|
|
required: true
|
|
|
|
default: null
|
|
|
|
default: null
|
|
|
|
aliases: []
|
|
|
|
aliases: []
|
|
|
@ -54,6 +54,10 @@ author: Paul Durivage
|
|
|
|
'''
|
|
|
|
'''
|
|
|
|
|
|
|
|
|
|
|
|
EXAMPLES = '''
|
|
|
|
EXAMPLES = '''
|
|
|
|
|
|
|
|
# Ad-hoc example
|
|
|
|
|
|
|
|
$ ansible -i hosts -m win_user -a "name=bob password=Password12345" all
|
|
|
|
|
|
|
|
$ ansible -i hosts -m win_user -a "name=bob password=Password12345 state=absent" all
|
|
|
|
|
|
|
|
|
|
|
|
# Playbook example
|
|
|
|
# Playbook example
|
|
|
|
---
|
|
|
|
---
|
|
|
|
- name: Add a user
|
|
|
|
- name: Add a user
|
|
|
@ -64,5 +68,4 @@ EXAMPLES = '''
|
|
|
|
win_user:
|
|
|
|
win_user:
|
|
|
|
name: ansible
|
|
|
|
name: ansible
|
|
|
|
password: "@ns1bl3"
|
|
|
|
password: "@ns1bl3"
|
|
|
|
state: present
|
|
|
|
|
|
|
|
'''
|
|
|
|
'''
|
|
|
|