cappysan.idrac.eventfilters_from_file

cappysan.idrac.eventfilters_from_file module – Set eventfilters for iDRAC alerts by reading a file.

Note

This module is part of the cappysan.idrac collection.

It is not included in ansible-core. To check whether it is installed, run ansible-galaxy collection list.

To install it, use: ansible-galaxy collection install cappysan.idrac.

To use it in a playbook, specify: cappysan.idrac.eventfilters_from_file.

Synopsis

  • Set eventfilters for iDRAC alerts by reading a file. If the value is already correct, no set will take place. Import file can be generated by connecting to iDRAC by ssh and exporting all alerts: ssh {user}@{hostname} eventfilters get -c  idrac.alert.all | tee events.txt

Note

This module has a corresponding action plugin.

Parameters

Parameter

Comments

file

string / required

eventfilters alerts file to import.

skip_missing

boolean

When event filter configuration key does not exist, skip it instead of throwing an error.

Choices:

  • false ← (default)

  • true

skip_none

boolean

When action is “none”, and notification is “none”, ignore setting the value

Choices:

  • false ← (default)

  • true

Attributes

Attribute

Support

Description

check_mode

Support: full

Can run in check_mode and return changed status prediction without modifying target.

diff_mode

Support: none

Will return details on what has changed (or possibly needs changing in check_mode), when in diff mode.

Examples

- name: "Set iDRAC eventfilters from file"
  cappysan.idrac.eventfilters_from_file:
    file: "events.txt"