mirror of
https://gitea.0xace.cc/ansible-galaxy/wal-g-pg.git
synced 2024-11-25 00:06:40 +00:00
24 lines
674 B
YAML
24 lines
674 B
YAML
- name: Template backup retention script
|
|
template:
|
|
src: backup-retention.sh.j2
|
|
dest: "{{ wal_g_pg_home_dir }}/backup-retention.sh"
|
|
mode: 0755
|
|
owner: "{{ wal_g_pg_backup_owner }}"
|
|
group: "{{ wal_g_pg_backup_group }}"
|
|
|
|
- name: Template systemd backup retention service
|
|
template:
|
|
src: backup-retention.service.j2
|
|
dest: /etc/systemd/system/backup-retention.service
|
|
notify: Daemon reload backup retention service
|
|
register: backup_retention_service
|
|
|
|
- name: Reload systemd backup retention service
|
|
systemd:
|
|
name: backup-retention.service
|
|
enabled: no
|
|
masked: no
|
|
daemon_reload: yes
|
|
when: not backup_retention_service.changed
|
|
|