aboutsummaryrefslogblamecommitdiffstats
path: root/roles/postgres/tasks/create_user.yml
blob: 483e5072f43af4bc000a4e71c3ee2b68d4d9ada9 (plain) (tree)
1
2
3
4
                                                     
                                                                          

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