def METHOD_NAME():
    ansible_vars = load_ansible_vars()
    pgbouncer_user = ansible_vars['pgbouncer_auth_user_list'][0]['username']
    pgbouncer_password = ansible_vars['pgbouncer_auth_user_list'][0]['password']
    pgbouncer_port = ansible_vars['pgbouncer_listen_port']
    pgbouncer_pid_file = get_pgbouncer_pid_file()
    pg_user = 'postgres'
    pg_group = 'postgres'
    if get_pg_type() == 'EPAS':
        pg_user = 'enterprisedb'
        pg_group = 'enterprisedb'
    pgbouncer_address = get_pgbouncer()[0]
    address = str(pgbouncer_address).strip("<>").split('//')[1]
    host = get_primary()
    with host.sudo(pg_user):
        query = "SHOW config"
        cmd = host.run(
            'PGPASSWORD=%s psql -At -U %s -h %s -p %s -c "%s" pgbouncer | grep %s'
            % (pgbouncer_password, pgbouncer_user, address, pgbouncer_port,
               query, 'pidfile')
        )
        result = cmd.stdout.strip()
    assert pgbouncer_pid_file in result, \
        "pgbouncer pid file was not configured properly."