ansible / ansible.builtin / v2.8.17 / module / pn_snmp_community CLI command to create/modify/delete snmp-community | "added in version" 2.8 of ansible.builtin" Authors: Pluribus Networks (@rajaspachipulusu17) preview | supported by communityansible.builtin.pn_snmp_community (v2.8.17) — module
pip
Install with pip install ansible==2.8.17
This module can be used to create SNMP communities for SNMPv1 or delete SNMP communities for SNMPv1 or modify SNMP communities for SNMPv1.
- name: Create snmp community pn_snmp_community: pn_cliswitch: "sw01" state: "present" pn_community_string: "foo" pn_community_type: "read-write"
- name: Delete snmp community pn_snmp_community: pn_cliswitch: "sw01" state: "absent" pn_community_string: "foo"
- name: Modify snmp community pn_snmp_community: pn_cliswitch: "sw01" state: "update" pn_community_string: "foo" pn_community_type: "read-only"
state: choices: - present - absent - update description: - State the action to perform. Use C(present) to create snmp-community and C(absent) to delete snmp-community C(update) to update snmp-community. required: true type: str pn_cliswitch: description: - Target switch to run the CLI on. required: false pn_community_type: choices: - read-only - read-write description: - community type. type: str pn_community_string: description: - community name. 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-community command. returned: on error type: list stdout: description: set of responses from the snmp-community command. returned: always type: list