From ea5976f49b3029751ac8b3298feae413c1521826 Mon Sep 17 00:00:00 2001 From: Jack Ivanov Date: Mon, 17 Apr 2017 18:12:38 +0200 Subject: [PATCH] write logs to file if BSD only --- roles/vpn/templates/strongswan.conf.j2 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/roles/vpn/templates/strongswan.conf.j2 b/roles/vpn/templates/strongswan.conf.j2 index 5e66cb2..b658ac0 100644 --- a/roles/vpn/templates/strongswan.conf.j2 +++ b/roles/vpn/templates/strongswan.conf.j2 @@ -11,7 +11,7 @@ charon { } user = strongswan group = strongswan - +{% if ansible_distribution == 'FreeBSD' %} filelog { /var/log/charon.log { time_format = %b %e %T @@ -21,6 +21,7 @@ charon { flush_line = yes } } +{% endif %} } include strongswan.d/*.conf