2014-09-26 01:01:01 +00:00
|
|
|
#!/usr/bin/python
|
|
|
|
# -*- coding: utf-8 -*-
|
|
|
|
|
2018-02-25 02:09:54 +00:00
|
|
|
# Copyright: (c) 2014, Chris Hoffman <choffman@chathamfinancial.com>
|
|
|
|
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
|
2014-09-26 01:01:01 +00:00
|
|
|
|
|
|
|
# this is a windows documentation stub. actual code lives in the .ps1
|
|
|
|
# file of the same name
|
|
|
|
|
2017-08-16 03:16:38 +00:00
|
|
|
ANSIBLE_METADATA = {'metadata_version': '1.1',
|
2017-03-14 16:07:22 +00:00
|
|
|
'status': ['stableinterface'],
|
|
|
|
'supported_by': 'core'}
|
|
|
|
|
2017-01-19 01:57:33 +00:00
|
|
|
DOCUMENTATION = r'''
|
2014-09-26 01:01:01 +00:00
|
|
|
---
|
|
|
|
module: win_group
|
|
|
|
version_added: "1.7"
|
|
|
|
short_description: Add and remove local groups
|
|
|
|
description:
|
2017-06-26 15:26:53 +00:00
|
|
|
- Add and remove local groups.
|
|
|
|
- For non-Windows targets, please use the M(group) module instead.
|
2014-09-26 01:01:01 +00:00
|
|
|
options:
|
|
|
|
name:
|
|
|
|
description:
|
2018-02-25 02:09:54 +00:00
|
|
|
- Name of the group.
|
|
|
|
required: yes
|
2014-09-26 01:01:01 +00:00
|
|
|
description:
|
|
|
|
description:
|
2018-02-25 02:09:54 +00:00
|
|
|
- Description of the group.
|
2014-09-26 01:01:01 +00:00
|
|
|
state:
|
|
|
|
description:
|
2018-02-25 02:09:54 +00:00
|
|
|
- Create or remove the group.
|
|
|
|
choices: [ absent, present ]
|
2014-09-26 01:01:01 +00:00
|
|
|
default: present
|
2017-06-26 15:26:53 +00:00
|
|
|
notes:
|
|
|
|
- For non-Windows targets, please use the M(group) module instead.
|
2018-02-25 02:09:54 +00:00
|
|
|
author:
|
|
|
|
- Chris Hoffman (@chrishoffman)
|
2014-09-26 01:01:01 +00:00
|
|
|
'''
|
|
|
|
|
2017-01-19 01:57:33 +00:00
|
|
|
EXAMPLES = r'''
|
2016-11-22 16:07:21 +00:00
|
|
|
- name: Create a new group
|
2014-09-26 01:01:01 +00:00
|
|
|
win_group:
|
|
|
|
name: deploy
|
|
|
|
description: Deploy Group
|
|
|
|
state: present
|
|
|
|
|
2016-11-22 16:07:21 +00:00
|
|
|
- name: Remove a group
|
2014-09-26 01:01:01 +00:00
|
|
|
win_group:
|
|
|
|
name: deploy
|
|
|
|
state: absent
|
|
|
|
'''
|