fix check for link

This commit is contained in:
Antonio J. Delgado 2023-03-27 12:31:13 +03:00
parent 7f6f1e929a
commit 09b50acc68

View file

@ -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: