aboutsummaryrefslogblamecommitdiffstats
path: root/roles/postgres/tasks/create_user.yml
blob: 793676edd66c781798132f8ab276128b38e5910a (plain) (tree)
1
2
3
4
5
6

   
                                                     
                                                                          

                                                                       
---

- 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.