ansible / ansible.builtin / v2.8.18 / module / pn_snmp_vacm CLI command to create/modify/delete snmp-vacm | "added in version" 2.8 of ansible.builtin" Authors: Pluribus Networks (@rajaspachipulusu17) preview | supported by communityansible.builtin.pn_snmp_vacm (v2.8.18) — module
pip
Install with pip install ansible==2.8.18
This module can be used to create View Access Control Models (VACM), modify VACM and delete VACM.
- name: create snmp vacm pn_snmp_vacm: pn_cliswitch: "sw01" state: "present" pn_user_name: "foo" pn_user_type: "rouser"
- name: update snmp vacm pn_snmp_vacm: pn_cliswitch: "sw01" state: "update" pn_user_name: "foo" pn_user_type: "rwuser"
- name: delete snmp vacm pn_snmp_vacm: pn_cliswitch: "sw01" state: "absent" pn_user_name: "foo"
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
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