This commit is contained in:
Bart Sjerps
2026-07-02 11:36:52 +02:00
parent 9d74e2f4b1
commit 092e607fe6
4 changed files with 31 additions and 5 deletions
+15 -1
View File
@@ -7,7 +7,22 @@
name: 'https://download.postgresql.org/pub/repos/yum/reporpms/EL-9-x86_64/pgdg-redhat-repo-latest.noarch.rpm'
state: present
- name: Postgres RPMs
ansible.builtin.dnf:
name:
- postgresql18-server
- postgresql18-contrib
state: latest
tasks:
- name: PG Backup directory
file:
path: '/var/backups/postgres'
state: directory
mode: '0775'
owner: postgres
group: postgres
- name: Backup script
copy:
src: 'bin/pg-backup'
@@ -20,4 +35,3 @@
minute: 30
hour: 23
job: /usr/local/bin/pg-backup