community.network.ce_snmp_location (5.0.2) — module

Manages SNMP location configuration on HUAWEI CloudEngine switches.

Authors: wangdezhuang (@QijunPan)

Install collection

Install with ansible-galaxy collection install community.network:==5.0.2


Add to requirements.yml

  collections:
    - name: community.network
      version: 5.0.2

Description

Manages SNMP location configurations on HUAWEI CloudEngine switches.

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.

- name: CloudEngine snmp location test
  hosts: cloudengine
  connection: local
  gather_facts: false

  tasks:

  - name: "Config SNMP location"
    community.network.ce_snmp_location:
      state: present
      location: nanjing China

  - name: "Remove SNMP location"
    community.network.ce_snmp_location:
      state: absent
      location: nanjing China

Inputs

    
state:
    choices:
    - present
    - absent
    default: present
    description:
    - Manage the state of the resource.

location:
    description:
    - Location information.
    required: true

Outputs

changed:
  description: check to see if a change was made on the device
  returned: always
  sample: true
  type: bool
end_state:
  description: k/v pairs of aaa params after module execution
  returned: always
  sample:
    location: nanjing China
  type: dict
existing:
  description: k/v pairs of existing aaa server
  returned: always
  sample: {}
  type: dict
proposed:
  description: k/v pairs of parameters passed into module
  returned: always
  sample:
    location: nanjing China
    state: present
  type: dict
updates:
  description: command sent to the device
  returned: always
  sample:
  - snmp-agent sys-info location nanjing China
  type: list