diff options
Diffstat (limited to 'roles/postgres/tasks/create_user.yml')
-rw-r--r-- | roles/postgres/tasks/create_user.yml | 4 |
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 |