ieisystem.inmanage.edit_service (1.1.1) — module

Set service settings

| "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

Set service settings on ieisystem Server.


Requirements

Usage examples

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

  tasks:

  - name: "Edit kvm"
    ieisystem.inmanage.edit_service:
      service_name: "kvm"
      state: "active"
      timeout: "1200"
      provider: "{{ inmanage }}"

Inputs

    
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

state:
    choices:
    - active
    - inactive
    description:
    - Displays the current status of the service, either active or inactive state.
    - Check this option to start the inactive service.
    type: str

timeout:
    description:
    - Displays the session timeout value of the service.
    - For web, SSH and telnet service, user can configure the session timeout value.
    - Web timeout value ranges from 300 to 1800 seconds.
    - SSH and Telnet timeout value ranges from 60 to 1800 seconds.
    - Timeout value should be in multiples of 60 seconds.
    type: int

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

interface:
    choices:
    - eth0
    - eth1
    - both
    - bond0
    description:
    - It shows the interface in which service is running.
    - The user can choose any one of the available interfaces.
    - Only the M5 model supports this parameter.
    type: str

secure_port:
    description:
    - Used to configure secure port number for the service.
    - Port value ranges from 1 to 65535.
    type: int

service_name:
    choices:
    - web
    - kvm
    - cd-media
    - fd-media
    - hd-media
    - ssh
    - telnet
    - solssh
    - snmp
    - vnc
    description:
    - Displays service name of the selected slot(readonly).
    - The I(vnc) option is not supported in M5.
    - The I(fd-media/telnet/snmp) option is not supported in M6.
    required: true
    type: str

non_secure_port:
    description:
    - Used to configure non secure port number for the service.
    - Port value ranges from 1 to 65535.
    type: int

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