The European champions will take on the Serie A club in Edinburgh on Sunday July 28 (5pm BST kick-off) as part of their preparations for the 2019-20 campaign.
Jürgen Klopp's side also met Carlo Ancelotti's team in pre-season last year, running out 5-0 winners in Dublin.
Click here to purchase tickets for the match now.