write logs to file if BSD only

This commit is contained in:
Jack Ivanov 2017-04-17 18:12:38 +02:00
parent 386dcf753b
commit 09dcb17969

View file

@ -11,7 +11,7 @@ charon {
} }
user = strongswan user = strongswan
group = strongswan group = strongswan
{% if ansible_distribution == 'FreeBSD' %}
filelog { filelog {
/var/log/charon.log { /var/log/charon.log {
time_format = %b %e %T time_format = %b %e %T
@ -21,6 +21,7 @@ charon {
flush_line = yes flush_line = yes
} }
} }
{% endif %}
} }
include strongswan.d/*.conf include strongswan.d/*.conf