Using variables within yaml

Sorry in advance for the stupid question but I didn’t find a valid answer.

I’ve a configuration.yaml file that contains all the modbus integration sensor information to read my EPEVER solar controller data.

There are recurrent parameters like:

scan_interval: 5sec

I would like to set this value only once using a variable or something to be able to set all the parameters changing one value only.

Thanks for the support.

Which is the best way to solve?