From 09b50acc681a3f81f7ba6dfc78d44996c5d21f5e Mon Sep 17 00:00:00 2001 From: "Antonio J. Delgado" Date: Mon, 27 Mar 2023 12:31:13 +0300 Subject: [PATCH] fix check for link --- tasks/configure_custom_theme.yml | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/tasks/configure_custom_theme.yml b/tasks/configure_custom_theme.yml index 5a13e46..371dcde 100644 --- a/tasks/configure_custom_theme.yml +++ b/tasks/configure_custom_theme.yml @@ -14,10 +14,6 @@ list_files: true register: zip_files -- name: Show files - debug: - var: zip_files - - name: Get current stylesheets stats stat: path: /etc/nagios4/stylesheets @@ -34,7 +30,7 @@ file: state: absent path: /etc/nagios4/stylesheets - when: not stylesheets.stat.islnk + when: stylesheets.stat.isdir is defined and stylesheets.stat.isdir - name: Create link to custom theme file: