inspur.sm.ad_group – Manage active directory group information.¶
Note
This plugin is part of the inspur.sm collection (version 1.1.2).
To install it use: ansible-galaxy collection install inspur.sm
.
To use it in a playbook, specify: inspur.sm.ad_group
.
New in version 1.1.0: of inspur.sm
Parameters¶
Examples¶
- name: Ad group test
hosts: ism
connection: local
gather_facts: no
vars:
ism:
host: "{{ ansible_ssh_host }}"
username: "{{ username }}"
password: "{{ password }}"
tasks:
- name: "Add active directory group information"
inspur.sm.ad_group:
state: "present"
name: "wbs"
domain: "inspur.com"
pri: "administrator"
kvm: "enable"
vm: "disable"
provider: "{{ ism }}"
- name: "Set active directory group information"
inspur.sm.ad_group:
state: "present"
name: "wbs"
pri: "user"
kvm: "disable"
provider: "{{ ism }}"
- name: "Delete active directory group information"
inspur.sm.ad_group:
state: "absent"
name: "wbs"
provider: "{{ ism }}"
Return Values¶
Common return values are documented here, the following are the fields unique to this module:
Authors¶
WangBaoshan (@ISIB-group)