forked from dell/dellemc-openmanage-ansible-modules
-
Notifications
You must be signed in to change notification settings - Fork 0
/
dellemc_configure_idrac_eventing.yml
59 lines (51 loc) · 1.5 KB
/
dellemc_configure_idrac_eventing.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
---
- hosts: hosts
connection: local
name: Configure the iDRAC eventing attributes
gather_facts: False
tasks:
- name: Setup iDRAC SMTP
dellemc_configure_idrac_eventing:
idrac_ip: "{{ idrac_ip }}"
idrac_user: "{{ idrac_user }}"
idrac_pwd: "{{ idrac_pwd }}"
share_name: "{{ playbook_dir }}"
smtp_ip_address: "0.0.0.0"
authentication: "Enabled"
username: "test"
password: "test"
tags:
- idrac_smtp
- name: Setup iDRAC SNMP Trap
dellemc_configure_idrac_eventing:
idrac_ip: "{{ idrac_ip }}"
idrac_user: "{{ idrac_user }}"
idrac_pwd: "{{ idrac_pwd }}"
share_name: "{{ playbook_dir }}"
snmp_trap_state: "Enabled"
destination_number: "2"
snmp_v3_username: "None"
destination: "1.1.1.1"
tags:
- idrac_snmptrap
- name: Setup iDRAC Email Alerts
dellemc_configure_idrac_eventing:
idrac_ip: "{{ idrac_ip }}"
idrac_user: "{{ idrac_user }}"
idrac_pwd: "{{ idrac_pwd }}"
share_name: "{{ playbook_dir }}"
email_alert_state: "Disabled"
address: "[email protected]"
alert_number: "1"
custom_message: "test"
tags:
- idrac_email_alerts
- name: Setup iDRAC Alerts
dellemc_configure_idrac_eventing:
idrac_ip: "{{ idrac_ip }}"
idrac_user: "{{ idrac_user }}"
idrac_pwd: "{{ idrac_pwd }}"
share_name: "{{ playbook_dir }}"
enable_alerts: "Disabled"
tags:
- idrac_alerts