Fix setting up the datanommer user and db
Signed-off-by: Pierre-Yves Chibon <pingou@pingoured.fr>
This commit is contained in:
parent
f3c4d63254
commit
f243f97b9d
1 changed files with 11 additions and 10 deletions
|
@ -11,6 +11,17 @@
|
||||||
roles:
|
roles:
|
||||||
- postgresql_server
|
- postgresql_server
|
||||||
|
|
||||||
|
- name: Set-up that database for datanommer
|
||||||
|
hosts: datanommer
|
||||||
|
user: fedora
|
||||||
|
gather_facts: True
|
||||||
|
become: True
|
||||||
|
become_user: postgres
|
||||||
|
|
||||||
|
vars_files:
|
||||||
|
- "host_vars/datanommer.yml"
|
||||||
|
- "secrets/secrets.yml"
|
||||||
|
|
||||||
tasks:
|
tasks:
|
||||||
- name: Set up the datanommer DB user
|
- name: Set up the datanommer DB user
|
||||||
postgresql_user:
|
postgresql_user:
|
||||||
|
@ -22,13 +33,3 @@
|
||||||
owner: "{{ datanommer_user }}"
|
owner: "{{ datanommer_user }}"
|
||||||
encoding: UTF-8
|
encoding: UTF-8
|
||||||
|
|
||||||
# Just some debugging tasks - to drop at some point
|
|
||||||
|
|
||||||
- name: get kernel version
|
|
||||||
command: uname -a
|
|
||||||
register: uname_output
|
|
||||||
|
|
||||||
- name: Show kernel info
|
|
||||||
debug:
|
|
||||||
msg: "{{uname_output}}"
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue