aboutsummaryrefslogtreecommitdiffstats
path: root/roles/postgres/tasks/create_user.yml
diff options
context:
space:
mode:
Diffstat (limited to 'roles/postgres/tasks/create_user.yml')
-rw-r--r--roles/postgres/tasks/create_user.yml4
1 files changed, 4 insertions, 0 deletions
diff --git a/roles/postgres/tasks/create_user.yml b/roles/postgres/tasks/create_user.yml
new file mode 100644
index 0000000..123070d
--- /dev/null
+++ b/roles/postgres/tasks/create_user.yml
@@ -0,0 +1,4 @@
+- name: ensure miniflux db user exists
+ shell: createuser -U postgres "{{ postgres_db_user }}"
+ register: result
+ failed_when: result.rc != 0 and "already exists" not in result.stderr
remember that computers suck.