r/burp-client: Support pre/post-restore scripts
BURP can run scripts before and after restore. This may be useful, for example, to clean up files in a backup that may be in an inconsistent state.step-ssh
parent
66d0a9157f
commit
74243080bb
|
@ -40,6 +40,22 @@
|
|||
dest={{ burp_backup_script_post }}
|
||||
mode=0755
|
||||
when: burp_backup_script_post is defined
|
||||
- name: ensure burp pre-restore script is installed
|
||||
copy:
|
||||
src: scripts/{{ inventory_hostname }}/{{ burp_restore_script_pre|basename }}
|
||||
dest: '{{ burp_restore_script_pre }}'
|
||||
owner: root
|
||||
group: root
|
||||
mode: u=rwx,go=rx
|
||||
when: burp_restore_script_pre is defined
|
||||
- name: ensure burp post-restore script is installed
|
||||
copy:
|
||||
src: scripts/{{ inventory_hostname }}/{{ burp_restore_script_post|basename }}
|
||||
dest: '{{ burp_restore_script_post }}'
|
||||
owner: root
|
||||
group: root
|
||||
mode: u=rwx,go=rx
|
||||
when: burp_restore_script_post is defined
|
||||
- name: ensure burp client is configured
|
||||
template:
|
||||
src=burp.conf.j2
|
||||
|
|
Loading…
Reference in New Issue