Best Practice for Setting I/O Scheduler

I’m trying to set the I/O scheduler for a block device (mysql tuning) with ansible. I’ve seen some examples but I’m curious what others are doing to persistently set this.