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
Dustin 2023-05-23 09:50:04 -05:00
parent 66d0a9157f
commit 74243080bb
1 changed files with 16 additions and 0 deletions

View File

@ -40,6 +40,22 @@
dest={{ burp_backup_script_post }} dest={{ burp_backup_script_post }}
mode=0755 mode=0755
when: burp_backup_script_post is defined 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 - name: ensure burp client is configured
template: template:
src=burp.conf.j2 src=burp.conf.j2