Become postgres user when creating java-deptools db and importing schema
This commit is contained in:
parent
d356094d2b
commit
2a26bce586
1 changed files with 5 additions and 1 deletions
|
@ -45,7 +45,9 @@
|
||||||
- postgres
|
- postgres
|
||||||
|
|
||||||
- name: Create database
|
- name: Create database
|
||||||
postgresql_db: name=java-deptools owner=java-deptools db=postgres login_user=root
|
postgresql_db: name=java-deptools owner=java-deptool
|
||||||
|
become: yes
|
||||||
|
become_user: postgres
|
||||||
tags:
|
tags:
|
||||||
- postgres
|
- postgres
|
||||||
|
|
||||||
|
@ -55,6 +57,8 @@
|
||||||
&& touch /var/lib/pgsql/data/schema.done
|
&& touch /var/lib/pgsql/data/schema.done
|
||||||
args:
|
args:
|
||||||
creates: /var/lib/pgsql/data/schema.done
|
creates: /var/lib/pgsql/data/schema.done
|
||||||
|
become: yes
|
||||||
|
become_user: postgres
|
||||||
tags:
|
tags:
|
||||||
- postgres
|
- postgres
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue