This is a play on words. The word "role" in acting means a character that needs to be played but "sausage roll" is a type of food. The punchline is that the role (or roll) in this play is meant for a sausage not a pie.
A pie went for an audition for a part in a play . The casting agent told him he performed well , but it was more of a sausage roll .