I am trying to write an ansible playbook to check to see if a particular module is loaded for the current kernel running.
if I do an lsmod | grep my_module_$kernelVer
I would see something like
if I am on the 2.6.32-754.3.5.el6.x86_64 kernel
if I am still on that kernel and said module is
I need to rebuild the module for the current kernel that is on the server. I know how to do it in bash but I am not sure how to store a specific value with ansible and the register command and I am just learning ansible.
Thanks for any help provided.