start pg before we create db
This commit is contained in:
parent
a4839bd417
commit
4d303d0875
2 changed files with 3 additions and 2 deletions
|
@ -83,7 +83,6 @@
|
||||||
service: state=running enabled=yes name={{ item }}
|
service: state=running enabled=yes name={{ item }}
|
||||||
with_items:
|
with_items:
|
||||||
- httpd
|
- httpd
|
||||||
- postgresql
|
|
||||||
|
|
||||||
- name: set acl for logstash to access httpd logs
|
- name: set acl for logstash to access httpd logs
|
||||||
acl: name=/var/log/httpd entity=logstash etype=user permissions=rx state=present
|
acl: name=/var/log/httpd entity=logstash etype=user permissions=rx state=present
|
||||||
|
|
|
@ -45,4 +45,6 @@
|
||||||
|
|
||||||
- name: Create db user
|
- name: Create db user
|
||||||
postgresql_user: db="coprdb" name="copr-fe" password="{{ copr_database_password }}" role_attr_flags=SUPERUSER,NOCREATEDB,NOCREATEROLE
|
postgresql_user: db="coprdb" name="copr-fe" password="{{ copr_database_password }}" role_attr_flags=SUPERUSER,NOCREATEDB,NOCREATEROLE
|
||||||
|
|
||||||
|
- name: enable Pg service
|
||||||
|
service: state=running enabled=yes name=postgresql
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue