From 04855031e0e3a74b98e59167ba5da91e077dab48 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Romain=20Gon=C3=A7alves?= Date: Sun, 12 Dec 2021 16:47:23 +0000 Subject: roles: Add postgresql --- roles/postgres/tasks/create_db.yml | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 roles/postgres/tasks/create_db.yml (limited to 'roles/postgres/tasks/create_db.yml') diff --git a/roles/postgres/tasks/create_db.yml b/roles/postgres/tasks/create_db.yml new file mode 100644 index 0000000..9adb6ee --- /dev/null +++ b/roles/postgres/tasks/create_db.yml @@ -0,0 +1,4 @@ +- name: ensure miniflux database exists + shell: createdb -U postgres -O "{{ postgres_db_user }}" "{{ postgres_db_name }}" + register: result + failed_when: result.rc != 0 and "already exists" not in result.stderr -- cgit v1.2.3