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