This is from the Roman Ritual, Celebration of a Silver or Golden Wedding Anniversary
I think it’s fair to say that it might also be done on a different-year anniversary as well.
The Roman Ritual suggests that it be done at Mass, after the Gospel and a brief homily (and yes, it’s a suggestion not a requirement) rather than after the Mass is concluded.
Within this rite of blessing, we have the Renewal of the Marriage Vows
The jubilarians join their right hands and repeat after the priest, the man first:
I, N.N., reaffirm my marriage vow of twenty-five (fifty) years ago, and rededicate myself in the same spirit that I once took you, N.N., for better, for worse, for richer, for poorer, in sickness and in health, till death do us part.
This is of course, a different version than the one found in the Collectio Rituum, so I thought it worthwhile to post both.