fix check for link
This commit is contained in:
parent
7f6f1e929a
commit
09b50acc68
1 changed files with 1 additions and 5 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue