ieisystem.inmanage.ad_group (1.1.1) — module

Manage active directory group information

| "added in version" 1.0.0 of ieisystem.inmanage"

Authors: WangBaoshan (@ieisystem)

Install collection

Install with ansible-galaxy collection install ieisystem.inmanage:==1.1.1


Add to requirements.yml

  collections:
    - name: ieisystem.inmanage
      version: 1.1.1

Description

Manage active directory group information on ieisystem Server.


Requirements

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Ad group test
  hosts: inmanage
  connection: local
  gather_facts: no
  vars:
    inmanage:
      host: "{{ ansible_ssh_host }}"
      username: "{{ username }}"
      password: "{{ password }}"

  tasks:

  - name: "Add active directory group information"
    ieisystem.inmanage.ad_group:
      state: "present"
      name: "wbs"
      domain: "test.com"
      pri: "administrator"
      kvm: "enable"
      vm: "disable"
      provider: "{{ inmanage }}"

  - name: "Set active directory group information"
    ieisystem.inmanage.ad_group:
      state: "present"
      name: "wbs"
      pri: "user"
      kvm: "disable"
      provider: "{{ inmanage }}"

  - name: "Delete active directory group information"
    ieisystem.inmanage.ad_group:
      state: "absent"
      name: "wbs"
      provider: "{{ inmanage }}"

Inputs

    
vm:
    choices:
    - enable
    - disable
    description:
    - This field provides access to VMedia for AD authenticated role group user.
    type: str

kvm:
    choices:
    - enable
    - disable
    description:
    - This field provides access to KVM for AD authenticated role group user.
    type: str

pri:
    choices:
    - administrator
    - user
    - operator
    - oem
    - none
    description:
    - Enter the Role Group Privilege. This is the level of privilege to be assigned for
      this role group.
    type: str

host:
    description:
    - Specifies the DNS host name or address for connecting to the remote device over
      the specified transport.  The value of host is used as the destination address for
      the transport.
    type: str

name:
    description:
    - Enter the Role Group Name. This name identifies the role group in Active Directory.
    required: true
    type: str

state:
    choices:
    - present
    - absent
    default: present
    description:
    - Whether the active directory group should exist or not, taking action if the state
      is different from what is stated.
    type: str

domain:
    description:
    - Enter the Role Group Domain. This is the domain where the role group is located.
    type: str

password:
    description:
    - Specifies the password to use to authenticate the connection to the remote device.
      If the value is not specified in the task, the value of environment variable C(ANSIBLE_NET_PASSWORD)
      will be used instead.
    type: str

provider:
    description:
    - A dict object containing connection details.
    suboptions:
      host:
        description:
        - Specifies the DNS host name or address for connecting to the remote device over
          the specified transport.  The value of host is used as the destination address
          for the transport.
        type: str
      password:
        description:
        - Specifies the password to use to authenticate the connection to the remote device.
          If the value is not specified in the task, the value of environment variable
          C(ANSIBLE_NET_PASSWORD) will be used instead.
        type: str
      username:
        description:
        - Configures the username to use to authenticate the connection to the remote
          device. If the value is not specified in the task, the value of environment
          variable C(ANSIBLE_NET_USERNAME) will be used instead.
        type: str
    type: dict

username:
    description:
    - Configures the username to use to authenticate the connection to the remote device.
      If the value is not specified in the task, the value of environment variable C(ANSIBLE_NET_USERNAME)
      will be used instead.
    type: str

Outputs

changed:
  description: Check to see if a change was made on the device.
  returned: always
  type: bool
message:
  description: Messages returned after module execution.
  returned: always
  type: str
state:
  description: Status after module execution.
  returned: always
  type: str