update
This commit is contained in:
+15
-1
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user