Add the postgres tag to the role.
This commit is contained in:
parent
9fa7155f44
commit
1fb5bd3524
1 changed files with 8 additions and 0 deletions
|
@ -11,6 +11,7 @@
|
||||||
- python-psycopg2
|
- python-psycopg2
|
||||||
tags:
|
tags:
|
||||||
- packages
|
- packages
|
||||||
|
- postgresql
|
||||||
|
|
||||||
- name: Set postgresql-server to run on boot
|
- name: Set postgresql-server to run on boot
|
||||||
service: name=postgresql enabled=yes
|
service: name=postgresql enabled=yes
|
||||||
|
@ -19,6 +20,7 @@
|
||||||
- restart postgresql
|
- restart postgresql
|
||||||
tags:
|
tags:
|
||||||
- service
|
- service
|
||||||
|
- postgresql
|
||||||
|
|
||||||
- name: Add our postgres config file.
|
- name: Add our postgres config file.
|
||||||
copy: >
|
copy: >
|
||||||
|
@ -32,12 +34,17 @@
|
||||||
- restart postgresql
|
- restart postgresql
|
||||||
tags:
|
tags:
|
||||||
- config
|
- config
|
||||||
|
- postgresql
|
||||||
|
|
||||||
- name: Ensure postgres has a place to backup to
|
- name: Ensure postgres has a place to backup to
|
||||||
file: dest=/backups state=directory owner=postgres
|
file: dest=/backups state=directory owner=postgres
|
||||||
|
tags:
|
||||||
|
- postgresql
|
||||||
|
|
||||||
- name: Copy over backup scriplet
|
- name: Copy over backup scriplet
|
||||||
copy: src=backup-database dest=/usr/local/bin/backup-database mode=0755
|
copy: src=backup-database dest=/usr/local/bin/backup-database mode=0755
|
||||||
|
tags:
|
||||||
|
- postgresql
|
||||||
|
|
||||||
- name: Set up some cronjobs to backup databases as configured
|
- name: Set up some cronjobs to backup databases as configured
|
||||||
template: >
|
template: >
|
||||||
|
@ -48,3 +55,4 @@
|
||||||
when: dbs_to_backup != []
|
when: dbs_to_backup != []
|
||||||
tags:
|
tags:
|
||||||
- cron
|
- cron
|
||||||
|
- postgresql
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue