add folder of zip

This commit is contained in:
Antonio J. Delgado 2023-03-27 12:27:32 +03:00
parent 2c9331fafc
commit 7f6f1e929a

View file

@ -40,13 +40,13 @@
file: file:
state: link state: link
path: /etc/nagios4/stylesheets path: /etc/nagios4/stylesheets
src: /usr/src/nagio4_theme/stylesheets src: /usr/src/nagio4_theme/{{ zip_files.files[0] }}/stylesheets
owner: www-data owner: www-data
group: www-data group: www-data
- name: Get custom theme index.php stats - name: Get custom theme index.php stats
stat: stat:
path: /usr/src/nagio4_theme/index.php path: /usr/src/nagio4_theme//{{ zip_files.files[0] }}/index.php
register: index_php register: index_php
- name: Backup previous index.php - name: Backup previous index.php
@ -59,6 +59,6 @@
- name: Copy custom index.php - name: Copy custom index.php
copy: copy:
remote_src: true 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 dest: /usr/share/nagios4/htdocs/index.php
when: index_php.stat.exists when: index_php.stat.exists