purestorage / purestorage.flashblade / 1.17.0 / module / purefb_snmp_mgr Configure FlashBlade SNMP Managers | "added in version" 1.0.0 of purestorage.flashblade" Authors: Pure Storage Ansible Team (@sdodsley) <pure-ansible-team@purestorage.com> preview | supported by communitypurestorage.flashblade.purefb_snmp_mgr (1.17.0) — module
Install with ansible-galaxy collection install purestorage.flashblade:==1.17.0
collections: - name: purestorage.flashblade version: 1.17.0
Manage SNMP managers on a Pure Storage FlashBlade.
This module is not idempotent and will always modify an existing SNMP manager due to hidden parameters that cannot be compared to the play parameters.
- name: Delete exisitng SNMP manager purestorage.flashblade.purefb_snmp_mgr: name: manager1 state: absent fb_url: 10.10.10.2 api_token: T-9f276a18-50ab-446e-8a0c-666a3529a1b6
- name: Create v2c SNMP manager purestorage.flashblade.purefb_snmp_mgr: name: manager1 community: public host: 10.21.22.23 fb_url: 10.10.10.2 api_token: T-9f276a18-50ab-446e-8a0c-666a3529a1b6
- name: Create v3 SNMP manager purestorage.flashblade.purefb_snmp_mgr: name: manager2 version: v3 auth_protocol: MD5 auth_passphrase: password host: 10.21.22.23 fb_url: 10.10.10.2 api_token: T-9f276a18-50ab-446e-8a0c-666a3529a1b6
- name: Update existing SNMP manager purestorage.flashblade.purefb_snmp_mgr: name: manager1 community: private fb_url: 10.10.10.2 api_token: T-9f276a18-50ab-446e-8a0c-666a3529a1b6
host: description: - IPv4 or IPv6 address or FQDN to send trap messages to. type: str name: description: - Name of SNMP Manager required: true type: str user: description: - SNMP v3 only. User ID recognized by the specified SNMP manager. Must be between 1 and 32 characters. type: str state: choices: - absent - present default: present description: - Create or delete SNMP manager type: str fb_url: description: - FlashBlade management IP address or Hostname. type: str version: choices: - v2c - v3 description: - Version of SNMP protocol to use for the manager. type: str api_token: description: - FlashBlade API token for admin privileged user. type: str community: description: - SNMP v2c only. Manager community ID. Between 1 and 32 characters long. type: str notification: choices: - inform - trap default: trap description: - Action to perform on event. type: str auth_protocol: choices: - MD5 - SHA description: - SNMP v3 only. Hash algorithm to use type: str auth_passphrase: description: - SNMPv3 only. Passphrase of 8 - 32 characters. type: str privacy_protocol: choices: - AES - DES description: - SNMP v3 only. Encryption protocol to use type: str privacy_passphrase: description: - SNMPv3 only. Passphrase to encrypt SNMP messages. Must be between 8 and 63 non-space ASCII characters. type: str