ieisystem.inmanage.user_group (1.1.1) — module

Manage user group

| "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 user group on ieisystem Server.


Requirements

Usage examples

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

  tasks:

  - name: "Add user group"
    ieisystem.inmanage.user_group:
      state: "present"
      name: "test"
      pri: "administrator"
      provider: "{{ inmanage }}"

  - name: "Set user group"
    ieisystem.inmanage.user_group:
      state: "present"
      name: "test"
      pri: "user"
      provider: "{{ inmanage }}"

  - name: "Set m6 user group"
    ieisystem.inmanage.user_group:
      state: "present"
      name: "OEM1"
      general: "enable"
      kvm: "enable"
      provider: "{{ inmanage }}"

  - name: "Delete user group"
    ieisystem.inmanage.user_group:
      state: "absent"
      name: "test"
      provider: "{{ inmanage }}"

Inputs

    
kvm:
    choices:
    - enable
    - disable
    description:
    - Remote KVM configuration privilege.
    - Required when I(state=present).
    - Only the M6 model supports this parameter.
    type: str

pri:
    choices:
    - administrator
    - operator
    - user
    - oem
    - none
    description:
    - Group privilege.
    - Required when I(state=present).
    - Only the M5 model supports this parameter.
    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:
    - Group name.
    - The range of group name for M6 model is OEM1, OEM2, OEM3, OEM4.
    required: true
    type: str

self:
    choices:
    - enable
    - disable
    description:
    - Itself configuration privilege.
    - Required when I(state=present).
    - Only the M6 model supports this parameter.
    type: str

debug:
    choices:
    - enable
    - disable
    description:
    - Debug diagnose privilege.
    - Required when I(state=present).
    - Only the M6 model supports this parameter.
    type: str

media:
    choices:
    - enable
    - disable
    description:
    - Remote media configuration privilege.
    - Required when I(state=present).
    - Only the M6 model supports this parameter.
    type: str

power:
    choices:
    - enable
    - disable
    description:
    - Power control privilege.
    - Required when I(state=present).
    - Only the M6 model supports this parameter.
    type: str

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

general:
    choices:
    - enable
    - disable
    description:
    - General configuration privilege.
    - Required when I(state=present).
    - Only the M6 model supports this parameter.
    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

security:
    choices:
    - enable
    - disable
    description:
    - Security configuration privilege.
    - Required when I(state=present).
    - Only the M6 model supports this parameter.
    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

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