updates
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
---
|
||||
- name: Postgres Servers
|
||||
hosts: postgres
|
||||
pre_tasks:
|
||||
- name: Postgres Repo
|
||||
ansible.builtin.dnf:
|
||||
name: 'https://download.postgresql.org/pub/repos/yum/reporpms/EL-9-x86_64/pgdg-redhat-repo-latest.noarch.rpm'
|
||||
state: present
|
||||
|
||||
tasks:
|
||||
- name: Backup script
|
||||
copy:
|
||||
src: 'bin/pg-backup'
|
||||
dest: '/usr/local/bin/pg-backup'
|
||||
mode: '0755'
|
||||
|
||||
- name: Setup Postgres backup cron job
|
||||
ansible.builtin.cron:
|
||||
name: "borgmatic"
|
||||
minute: 30
|
||||
hour: 23
|
||||
job: /usr/local/bin/pg-backup
|
||||
|
||||
Reference in New Issue
Block a user