Merge pull request #34 from stevetjoa/master

Changed modules from 'action' to 'postgresql_db' and 'postgresql_user', ...
This commit is contained in:
Tim Gerla 2013-11-02 22:10:14 -07:00
commit 2ed8bfa5ef

View file

@ -28,14 +28,14 @@
vars: vars:
dbname: myapp dbname: myapp
dbuser: django dbuser: django
dbpassword: mysupersecreetpassword dbpassword: mysupersecretpassword
tasks: tasks:
- name: ensure database is created - name: ensure database is created
action: postgresql_db db={{dbname}} postgresql_db: name={{dbname}}
- name: ensure user has access to database - name: ensure user has access to database
action: postgresql_user db={{dbname}} user={{dbuser}} password={{dbpassword}} priv=ALL postgresql_user: db={{dbname}} name={{dbuser}} password={{dbpassword}} priv=ALL
- name: ensure user does not have unnecessary privilege - name: ensure user does not have unnecessary privilege
action: postgresql_user user={{dbuser}} role_attr_flags=NOSUPERUSER,NOCREATEDB postgresql_user: name={{dbuser}} role_attr_flags=NOSUPERUSER,NOCREATEDB