add backup of previous index
This commit is contained in:
parent
056e2f131b
commit
128c0a08e7
1 changed files with 7 additions and 0 deletions
|
@ -34,6 +34,13 @@
|
||||||
path: /usr/src/nagio4_theme/index.php
|
path: /usr/src/nagio4_theme/index.php
|
||||||
register: 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
|
- name: Copy custom index.php
|
||||||
copy:
|
copy:
|
||||||
remote_src: true
|
remote_src: true
|
||||||
|
|
Loading…
Reference in a new issue