From 143eea72ae97e453748920bdec15936c3554ae90 Mon Sep 17 00:00:00 2001 From: "pulsar89.5" Date: Fri, 26 May 2023 12:08:09 +0200 Subject: [PATCH] =?UTF-8?q?[EVO]=20V=C3=A9rifier=20la=20pr=C3=A9sence=20du?= =?UTF-8?q?=20fichier=20avant=20de=20le=20copier?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tasks/configuration.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tasks/configuration.yml b/tasks/configuration.yml index e024aa2..0a5e94b 100644 --- a/tasks/configuration.yml +++ b/tasks/configuration.yml @@ -43,7 +43,9 @@ mode: u=rw,g=,o= src: "{{ item.src }}" dest: "{{ item.dest }}" - when: fail2ban_templates | length > 0 + when: + - fail2ban_templates | length > 0 + - item.src is exists loop: "{{ fail2ban_templates }}" loop_control: label: "{{ item.dest }}" -- 2.39.5