Automatically trigger lights when flaps deploy

I would like to have a landing light that is on relay 2 trigger when the flaps deploy…is there any way to do this?

Thanks