File tree Expand file tree Collapse file tree 3 files changed +8
-3
lines changed Expand file tree Collapse file tree 3 files changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -35,6 +35,9 @@ provisioner:
3535 - " 172.17.0.3"
3636 - " 172.17.0.4"
3737 keepalived_virtual_ip_address : " 172.17.0.20"
38+ keepalived_notification_email :
39+ - " root"
40+ 3841verifier :
3942 name : " ansible"
4043scenario :
Original file line number Diff line number Diff line change @@ -44,8 +44,8 @@ keepalived_service_file_path: "/etc/systemd/system/keepalived.service"
4444keepalived_pid_file_path : " /run/keepalived/keepalived.pid"
4545
4646
47- # Configure notification email address
48- keepalived_notification_email : " name@localhost "
47+ # Configure email accounts that will receive notification mails
48+ keepalived_notification_email : ["root"]
4949# Configure notification sender
5050keepalived_notification_email_from : " keepalived@localhost"
5151# Configure SMTP Server
Original file line number Diff line number Diff line change @@ -12,7 +12,9 @@ global_defs {
1212 enable_script_security
1313{% endif %}
1414 notification_email {
15- {{ keepalived_notification_email }}
15+ {% for email in keepalived_notification_email %}
16+ {{ email }}
17+ {% endfor %}
1618 }
1719 notification_email_from {{ keepalived_notification_email_from }}
1820 smtp_server {{ keepalived_smtp_server }}
You can’t perform that action at this time.
0 commit comments