From 2c9331fafc0f8ceee4284617b380e2defd830b60 Mon Sep 17 00:00:00 2001 From: "Antonio J. Delgado" Date: Mon, 27 Mar 2023 12:24:17 +0300 Subject: [PATCH] change to when is dir --- tasks/configure_custom_theme.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tasks/configure_custom_theme.yml b/tasks/configure_custom_theme.yml index 69b8d79..c96cacc 100644 --- a/tasks/configure_custom_theme.yml +++ b/tasks/configure_custom_theme.yml @@ -28,7 +28,7 @@ remote_src: true src: /etc/nagios4/stylesheets dest: /etc/nagios4/stylesheets_original - when: not stylesheets.stat.islnk + when: stylesheets.stat.isdir is defined and stylesheets.stat.isdir - name: Remove old stylesheets file: