1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Improve YAML examples - windows/win_user.py (#19401)

This commit is contained in:
Fabio Alessandro Locati 2016-12-15 23:56:04 +01:00 committed by Matt Davis
parent 9b3d9e1780
commit f57418c2c1

View file

@ -137,19 +137,16 @@ author:
''' '''
EXAMPLES = ''' EXAMPLES = '''
# Ad-hoc example - name: Ensure user bob is present
$ ansible -i hosts -m win_user -a "name=bob password=Password12345 groups=Users" all
$ ansible -i hosts -m win_user -a "name=bob state=absent" all
# Playbook example
---
- name: Add a user
hosts: all
gather_facts: false
tasks:
- name: Add User
win_user: win_user:
name: ansible name: bob
password: "@ns1bl3" password: B0bP4ssw0rd
groups: ["Users"] state: present
groups:
- Users
- name: Ensure user bob is absent
win_user:
name: bob
state: absent
''' '''