From 3eec1f4b429286aa45d92255a253624df53a0fcb Mon Sep 17 00:00:00 2001 From: Robert Kaussow Date: Sun, 16 Jul 2017 12:31:12 +0200 Subject: [PATCH] fix file-exist check --- tasks/config.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tasks/config.yml b/tasks/config.yml index 87fdc9d..1f1feb6 100644 --- a/tasks/config.yml +++ b/tasks/config.yml @@ -120,7 +120,9 @@ shell: "/usr/bin/openssl dhparam -out '{{ dhparam_file }}' {{ dhparam_size }}" async: 3600 poll: 60 - when: dh_file.stat.isfile is not defined + when: dh_file.stat.exists == 'false' + notify: + - nginx_reload - name: Open ports in iptables iptables_raw: