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: