mirror of
https://github.com/geerlingguy/ansible-role-apache
synced 2025-01-10 11:50:18 +01:00
Merge pull request #34 from stevetjoa/master
Changed modules from 'action' to 'postgresql_db' and 'postgresql_user', ...
This commit is contained in:
commit
2ed8bfa5ef
1 changed files with 4 additions and 4 deletions
|
@ -28,14 +28,14 @@
|
|||
vars:
|
||||
dbname: myapp
|
||||
dbuser: django
|
||||
dbpassword: mysupersecreetpassword
|
||||
dbpassword: mysupersecretpassword
|
||||
|
||||
tasks:
|
||||
- name: ensure database is created
|
||||
action: postgresql_db db={{dbname}}
|
||||
postgresql_db: name={{dbname}}
|
||||
|
||||
- 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
|
||||
action: postgresql_user user={{dbuser}} role_attr_flags=NOSUPERUSER,NOCREATEDB
|
||||
postgresql_user: name={{dbuser}} role_attr_flags=NOSUPERUSER,NOCREATEDB
|
||||
|
|
Loading…
Reference in a new issue