aboutsummaryrefslogtreecommitdiffstats
path: root/roles/postgres/tasks/create_db.yml
diff options
context:
space:
mode:
Diffstat (limited to 'roles/postgres/tasks/create_db.yml')
-rw-r--r--roles/postgres/tasks/create_db.yml4
1 files changed, 2 insertions, 2 deletions
diff --git a/roles/postgres/tasks/create_db.yml b/roles/postgres/tasks/create_db.yml
index 9adb6ee..7a4fe6e 100644
--- a/roles/postgres/tasks/create_db.yml
+++ b/roles/postgres/tasks/create_db.yml
@@ -1,4 +1,4 @@
-- name: ensure miniflux database exists
- shell: createdb -U postgres -O "{{ postgres_db_user }}" "{{ postgres_db_name }}"
+- name: create database # noqa: no-changed-when
+ 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.