From 7f6f1e929a3774d1e09f19788732f2f53273b2d3 Mon Sep 17 00:00:00 2001 From: "Antonio J. Delgado" Date: Mon, 27 Mar 2023 12:27:32 +0300 Subject: [PATCH] add folder of zip --- tasks/configure_custom_theme.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tasks/configure_custom_theme.yml b/tasks/configure_custom_theme.yml index c96cacc..5a13e46 100644 --- a/tasks/configure_custom_theme.yml +++ b/tasks/configure_custom_theme.yml @@ -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