1
0
Fork 0
This repository has been archived on 2023-03-28. You can view files and clone it, but cannot push or open issues or pull requests.
fedihub-ansible/playbooks/deploy/postgres.yml

20 lines
454 B
YAML

---
- hosts: postgres
module_defaults:
apt:
force_apt_get: true
update_cache: true
cache_valid_time: 86400
roles:
- name: kotovalexarian.common
tags: common
- geerlingguy.postgresql
tasks:
- name: Create daily Cron job for PostgreSQL backup
template:
src: ../../templates/pg_backup
dest: /etc/cron.daily/pg_backup
mode: 'u=rwx,g=rx,o=rx'
owner: root
group: root