aboutsummaryrefslogtreecommitdiffstats
path: root/roles/postgres/tasks/create_db.yml
blob: 7a4fe6e1bc3d39724cd84877e5865b7fed194564 (plain) (blame)
1
2
3
4
- name: create database  # noqa: no-changed-when
  command: createdb -U postgres -O "{{ postgres_db_user }}" "{{ postgres_db_name }}"
  register: result
  failed_when: result.rc != 0 and "already exists" not in result.stderr
remember that computers suck.