add custom index.php

This commit is contained in:
Antonio J. Delgado 2023-03-27 11:51:03 +03:00
parent 0236d26274
commit 056e2f131b

View file

@ -28,3 +28,15 @@
state: link state: link
path: /etc/nagios4/stylesheets path: /etc/nagios4/stylesheets
src: /usr/src/nagio4_theme/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