Migrate a bunch of things to roles. Thanks to misc!

This commit is contained in:
Kevin Fenzi 2013-08-19 20:12:26 +00:00
parent 16ce004157
commit 8e2ec48cc0
55 changed files with 138 additions and 108 deletions

View file

@ -1,27 +0,0 @@
---
#
# Setup postgresql server.
#
- name: install postgresql server packages
yum: name=$item state=installed
with_items:
- postgresql-server
- postgresql-contrib
- postgresql-plpython
tags:
- packages
- name: initialize postgresql
command: service postgresql initdb
creates=/var/lib/pgsql/data/postgresql.conf
ignore_errors: true
tags:
- service
- name: Set postgresql-server to run on boot
service: name=postgresql enabled=yes
ignore_errors: true
notify:
- restart postgresql
tags:
- service