aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'hetzner/psql.yaml')
-rw-r--r--hetzner/psql.yaml19
1 files changed, 19 insertions, 0 deletions
diff --git a/hetzner/psql.yaml b/hetzner/psql.yaml
new file mode 100644
index 0000000..4941ea9
--- /dev/null
+++ b/hetzner/psql.yaml
@@ -0,0 +1,19 @@
1---
2- name: Postgresql
3 hosts: localhost
4 become: true
5 become_user: postgres
6 tasks:
7 - name: Create Mastodon Database
8 community.postgresql.postgresql_db:
9 name: mastodon_production
10 encoding: UTF-8
11 lc_collate: en_US.UTF-8
12 lc_ctype: en_US.UTF-8
13 template: template0
14
15 - name: Create Postgresql User
16 community.postgresql.postgresql_user:
17 db: mastodon_production
18 user: mastodon
19 password:
Powered by cgit v1.2.3 (git 2.41.0)