Just adding the right dkms file allows to do all the necessary to run dkms on the ansible target system.