aboutsummaryrefslogtreecommitdiffstats
path: root/roles/postgres/tasks/create_user.yml
diff options
context:
space:
mode:
authorRomain Gonçalves <me@rgoncalves.se>2021-12-21 17:39:24 +0000
committerRomain Gonçalves <me@rgoncalves.se>2021-12-21 17:49:50 +0000
commit84aa6a0ad17aa8517c1429272cf4c6fcaed9bfbb (patch)
tree8c56f72fe17b3d5556fb21f5b058a62262d2e3ac /roles/postgres/tasks/create_user.yml
parentdea389b8e65f0222e8f618c15530a0d0172c728e (diff)
downloadrules-84aa6a0ad17aa8517c1429272cf4c6fcaed9bfbb.tar.gz
roles/postgres: Pass ansible-lint
Diffstat (limited to 'roles/postgres/tasks/create_user.yml')
-rw-r--r--roles/postgres/tasks/create_user.yml4
1 files changed, 2 insertions, 2 deletions
diff --git a/roles/postgres/tasks/create_user.yml b/roles/postgres/tasks/create_user.yml
index 123070d..4716939 100644
--- a/roles/postgres/tasks/create_user.yml
+++ b/roles/postgres/tasks/create_user.yml
@@ -1,4 +1,4 @@
-- name: ensure miniflux db user exists
- shell: createuser -U postgres "{{ postgres_db_user }}"
+- name: create database user # noqa: no-changed-when
+ command: createuser -U postgres "{{ postgres_db_user }}"
register: result
failed_when: result.rc != 0 and "already exists" not in result.stderr
remember that computers suck.