2024-05-15 12:52:33 +00:00
|
|
|
- name: Template backup permanent script
|
|
|
|
template:
|
|
|
|
src: backup-permanent.sh.j2
|
|
|
|
dest: "{{ wal_g_pg_home_dir }}/backup-permanent.sh"
|
|
|
|
mode: 0755
|
|
|
|
owner: "{{ wal_g_pg_backup_owner }}"
|
|
|
|
group: "{{ wal_g_pg_backup_group }}"
|
|
|
|
|
|
|
|
- name: Template systemd backup permanent service
|
|
|
|
template:
|
|
|
|
src: backup-permanent.service.j2
|
|
|
|
dest: /etc/systemd/system/backup-permanent.service
|
|
|
|
notify: Daemon reload backup permanent service
|
|
|
|
register: backup_permanent_service
|
|
|
|
|
|
|
|
- name: Reload systemd backup permanent service
|
|
|
|
systemd:
|
|
|
|
name: backup-permanent.service
|
|
|
|
enabled: no
|
|
|
|
masked: no
|
|
|
|
daemon_reload: yes
|
2024-05-26 14:59:12 +00:00
|
|
|
when: backup_permanent_service.changed
|