Move postgres backup cron task inside a bash flavored script.

This commit is contained in:
Ralph Bean 2014-01-13 16:16:18 +00:00
parent a41fb3da66
commit 5e32fe5643
3 changed files with 10 additions and 1 deletions

View file

@ -36,6 +36,9 @@
- name: Ensure postgres has a place to backup to
file: dest=/backups state=directory owner=postgres
- name: Copy over backup scriplet
copy: src=backup-database dest=/usr/local/bin/backup-database mode=0755
- name: Set up some cronjobs to backup databases as configured
template: >
src=cron-backup-database