blob: 4941ea916c795fbcafd51b6c2e2bbe12a72889c1 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
---
- name: Postgresql
hosts: localhost
become: true
become_user: postgres
tasks:
- name: Create Mastodon Database
community.postgresql.postgresql_db:
name: mastodon_production
encoding: UTF-8
lc_collate: en_US.UTF-8
lc_ctype: en_US.UTF-8
template: template0
- name: Create Postgresql User
community.postgresql.postgresql_user:
db: mastodon_production
user: mastodon
password:
|