aboutsummaryrefslogtreecommitdiffstats
path: root/roles/postgres/tasks/create_user.yml
blob: 47169396765b2ca72e4e44fe465a42c6e0382bac (plain) (blame)
1
2
3
4
- 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.