Ansoldi participated at the 2006, 2007, 2008, 2010 and 2012 IIHF World Championship as a member of the Italian national team. He also played in the 2006 Winter Olympics.