Use a bit of doublesided tape to fixate the module in the cover. Not much else to say.
OpenSCAD file included as always.
Have fun!