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: