community.general.pn_snmp_vacm (0.1.1) — module

CLI command to create/modify/delete snmp-vacm

Authors: Pluribus Networks (@rajaspachipulusu17)

preview | supported by community

Install collection

Install with ansible-galaxy collection install community.general:==0.1.1


Add to requirements.yml

  collections:
    - name: community.general
      version: 0.1.1

Description

This module can be used to create View Access Control Models (VACM), modify VACM and delete VACM.

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: create snmp vacm
  pn_snmp_vacm:
    pn_cliswitch: "sw01"
    state: "present"
    pn_user_name: "foo"
    pn_user_type: "rouser"
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: update snmp vacm
  pn_snmp_vacm:
    pn_cliswitch: "sw01"
    state: "update"
    pn_user_name: "foo"
    pn_user_type: "rwuser"
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: delete snmp vacm
  pn_snmp_vacm:
    pn_cliswitch: "sw01"
    state: "absent"
    pn_user_name: "foo"

Inputs

    
state:
    choices:
    - present
    - absent
    - update
    description:
    - State the action to perform. Use C(present) to create snmp-vacm and C(absent) to
      delete snmp-vacm and C(update) to modify snmp-vacm.
    required: true
    type: str

pn_auth:
    description:
    - authentication required.
    type: bool

pn_priv:
    description:
    - privileges.
    type: bool

pn_cliswitch:
    description:
    - Target switch to run the CLI on.
    required: false
    type: str

pn_user_name:
    description:
    - SNMP administrator name.
    type: str

pn_user_type:
    choices:
    - rouser
    - rwuser
    description:
    - SNMP user type.
    type: str

pn_oid_restrict:
    description:
    - restrict OID.
    type: str

Outputs

changed:
  description: indicates whether the CLI caused changes on the target.
  returned: always
  type: bool
command:
  description: the CLI command run on the target node.
  returned: always
  type: str
stderr:
  description: set of error responses from the snmp-vacm command.
  returned: on error
  type: list
stdout:
  description: set of responses from the snmp-vacm command.
  returned: always
  type: list