aboutsummaryrefslogtreecommitdiffstats
path: root/roles/postgresql/tasks/create_db.yml
blob: d2f3676face20a27cff86ba8652020aa8e2d7807 (plain) (blame)
1
2
3
4
5
6
---

- name: create database  # noqa: no-changed-when
  ansible.builtin.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.