inspur.sm.edit_snmp_trap – Set snmp trap.¶
Note
This plugin is part of the inspur.sm collection (version 1.1.2).
To install it use: ansible-galaxy collection install inspur.sm
.
To use it in a playbook, specify: inspur.sm.edit_snmp_trap
.
New in version 0.1.0: of inspur.sm
Parameters¶
Examples¶
- name: Trap test
hosts: ism
connection: local
gather_facts: no
vars:
ism:
host: "{{ ansible_ssh_host }}"
username: "{{ username }}"
password: "{{ password }}"
tasks:
- name: "Set snmp trap v2c"
inspur.sm.edit_snmp_trap:
version: "2c"
event_severity: "warning"
inspur: "test"
system_name: "Inspur"
provider: "{{ ism }}"
- name: "Set snmp trap v3"
inspur.sm.edit_snmp_trap:
version: "3"
event_severity: "all"
v3username: "Inspur"
engine_id: "1234567890"
auth_protocol: "SHA"
auth_password: "12345678"
priv_protocol: "AES"
priv_password: "123454678"
trap_port: 162
provider: "{{ ism }}"
Return Values¶
Common return values are documented here, the following are the fields unique to this module:
Authors¶
WangBaoshan (@ISIB-group)