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