- name: create a new user in database become: yes become_user: postgres postgresql_user: # login_unix_socket: /var/run/mysqld/mysqld.sock db: '{{ DB_NAME }}' name: '{{ DB_USER_NAME }}' password: '{{ DB_USER_PASSWORD }}' priv: ALL expires: infinity