Skip to content

Commit 3988186

Browse files
committed
Fix conditions
1 parent 3b2d61c commit 3988186

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

tasks/monit.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,17 @@
1111
- "allow localhost"
1212

1313

14-
- when: when enable_mail_alerts == True and smtp_use_tls == True
14+
- when: enable_mail_alerts == True and smtp_use_tls == True
1515
name: set tls_option
1616
set_fact: smtp_tls_option="using tlsv1"
1717

18-
- when: when enable_mail_alerts == True and smtp_use_tls != True
18+
19+
- when: enable_mail_alerts == True and smtp_use_tls != True
1920
name: set tls_option
2021
set_fact: smtp_tls_option=""
2122

2223

23-
- when: when enable_mail_alerts == True
24+
- when: enable_mail_alerts == True
2425
name: set mail server for notifications in monit
2526
lineinfile: dest=/etc/monit/monitrc line="{{ item }}"
2627
with_items:

0 commit comments

Comments
 (0)