Skip to content

Commit 1e6a189

Browse files
committed
Disable keepalived mail configuration when no notification email has been specified
Signed-off-by: Norman Ziegner <[email protected]>
1 parent 54c4e17 commit 1e6a189

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

roles/keepalived/templates/keepalived.conf.j2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@ global_defs {
1717
{{ email }}
1818
{% endfor %}
1919
}
20-
{% endif %}
2120
notification_email_from {{ keepalived_notification_email_from }}
2221
smtp_server {{ keepalived_smtp_server }}
2322
smtp_connect_timeout 30
23+
{% endif %}
2424
{% if keepalived_router_id is defined %}
2525
router_id {{ keepalived_router_id }}
2626
{% endif %}

0 commit comments

Comments
 (0)