123456789101112131415161718192021222324252627282930313233343536373839404142 |
- ---
- - name: Configure SNMP
- block:
- - name: Set parameters for SNMP configuration
- set_fact:
- os10_snmp:
- snmp_community:
- - name: "{{ snmp_community_name }}"
- access_mode: ro
- state: present
- snmp_traps:
- - name: all
- state: present
- snmp_host:
- - ip: "{{ snmp_trap_destination }}"
- communitystring: "{{ snmp_community_name }}"
- version: "1"
- state: present
- when: snmp_trap_destination | length > 1
- - name: Apply SNMP configuration
- include_role:
- name: dellemc.os10.os10_snmp
- vars:
- - hostname: "{{ inventory_hostname }}"
- os10_cfg_generate: true
- when: os10_snmp is defined
|