mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2024-11-23 05:01:04 +01:00
23 lines
600 B
YAML
23 lines
600 B
YAML
|
- name: Create database
|
||
|
postgresql_db:
|
||
|
name: "{{ database_databasename }}"
|
||
|
state: present
|
||
|
login_user: postgres
|
||
|
login_password: "{{ central_postgres_password }}"
|
||
|
login_host: 127.0.0.1
|
||
|
login_port: 5432
|
||
|
listen: create database
|
||
|
|
||
|
- name: Create database user
|
||
|
postgresql_user:
|
||
|
name: "{{ database_username }}"
|
||
|
password: "{{ database_password }}"
|
||
|
db: "{{ database_databasename }}"
|
||
|
priv: ALL
|
||
|
state: present
|
||
|
login_user: postgres
|
||
|
login_password: "{{ central_postgres_password }}"
|
||
|
login_host: 127.0.0.1
|
||
|
login_port: 5432
|
||
|
listen: create database
|