From 056e2f131b8effa1dc24e38ccbcd6011732e9da5 Mon Sep 17 00:00:00 2001 From: "Antonio J. Delgado" Date: Mon, 27 Mar 2023 11:51:03 +0300 Subject: [PATCH] add custom index.php --- tasks/configure_custom_theme.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/tasks/configure_custom_theme.yml b/tasks/configure_custom_theme.yml index 70b4f2d..94de306 100644 --- a/tasks/configure_custom_theme.yml +++ b/tasks/configure_custom_theme.yml @@ -28,3 +28,15 @@ state: link path: /etc/nagios4/stylesheets src: /usr/src/nagio4_theme/stylesheets + +- name: Get custom theme index.php stats + stat: + path: /usr/src/nagio4_theme/index.php + register: index_php + +- name: Copy custom index.php + copy: + remote_src: true + src: /usr/src/nagio4_theme/index.php + dest: /usr/share/nagios4/htdocs/index.php + when: index_php.stat.exists