add folder of zip
This commit is contained in:
parent
2c9331fafc
commit
7f6f1e929a
1 changed files with 3 additions and 3 deletions
|
@ -40,13 +40,13 @@
|
|||
file:
|
||||
state: link
|
||||
path: /etc/nagios4/stylesheets
|
||||
src: /usr/src/nagio4_theme/stylesheets
|
||||
src: /usr/src/nagio4_theme/{{ zip_files.files[0] }}/stylesheets
|
||||
owner: www-data
|
||||
group: www-data
|
||||
|
||||
- name: Get custom theme index.php stats
|
||||
stat:
|
||||
path: /usr/src/nagio4_theme/index.php
|
||||
path: /usr/src/nagio4_theme//{{ zip_files.files[0] }}/index.php
|
||||
register: index_php
|
||||
|
||||
- name: Backup previous index.php
|
||||
|
@ -59,6 +59,6 @@
|
|||
- name: Copy custom index.php
|
||||
copy:
|
||||
remote_src: true
|
||||
src: /usr/src/nagio4_theme/index.php
|
||||
src: /usr/src/nagio4_theme//{{ zip_files.files[0] }}/index.php
|
||||
dest: /usr/share/nagios4/htdocs/index.php
|
||||
when: index_php.stat.exists
|
||||
|
|
Loading…
Reference in a new issue