aboutsummaryrefslogtreecommitdiffstats
path: root/roles/postgres/tasks/create_db.yml
diff options
context:
space:
mode:
authorRomain Gonçalves <me@rgoncalves.se>2024-02-13 23:09:02 +0100
committerRomain Gonçalves <me@rgoncalves.se>2024-02-13 23:16:09 +0100
commit479efa19547bf710e0113b08bc6165b66d1b7980 (patch)
tree4f4bb17bdcca43ec7fd14ccf0b07dc316dc29541 /roles/postgres/tasks/create_db.yml
parent075faa3ab59f2e5569cbd7c947251135e378e211 (diff)
downloadrules-479efa19547bf710e0113b08bc6165b66d1b7980.tar.gz
feat(roles/postgresql): simplify postgresql init
Diffstat (limited to 'roles/postgres/tasks/create_db.yml')
-rw-r--r--roles/postgres/tasks/create_db.yml6
1 files changed, 0 insertions, 6 deletions
diff --git a/roles/postgres/tasks/create_db.yml b/roles/postgres/tasks/create_db.yml
deleted file mode 100644
index d2f3676..0000000
--- a/roles/postgres/tasks/create_db.yml
+++ /dev/null
@@ -1,6 +0,0 @@
----
-
-- name: create database # noqa: no-changed-when
- ansible.builtin.command: createdb -U postgres -O "{{ postgres_db_user }}" "{{ postgres_db_name }}"
- register: result
- failed_when: result.rc != 0 and "already exists" not in result.stderr
remember that computers suck.