add backup of previous index

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

View file

@ -34,6 +34,13 @@
path: /usr/src/nagio4_theme/index.php
register: index_php
- name: Backup previous index.php
copy:
remote_src: true
src: /usr/share/nagios4/htdocs/index.php
dest: /usr/share/nagios4/htdocs/index_previous.php
when: index_php.stat.exists
- name: Copy custom index.php
copy:
remote_src: true