modprobe_module, when setting state=present, where is it saved for adding the module at next boot ?

Hi Its unclear where the modprobe module save the settings, I cant find a list of modules to load att boot in /etc/modprobe.d/

There’s also no info about this in the module website.

for example kernel_blacklist says:

blacklist_file,use this blacklist file instead of /etc/modprobe.d/blacklist-ansible.conf.

and this file is created. But there’s no such info for modprobe module.

Thanks

The modprobe module is part of ansible-modules-extras, which means it’s a bit newer or less fleshed out than some modules.

This doesn’t actually save anything but just runs the modprobe commands.

So you would want to use this system and also drop something in modprobe.d.

This should probably be clarified in the module notes section.

Hi thanks for the reply, yes indeed if this is true then it seems pretty pointless, you shouldnt be expected to run ansible instantly after a reboot right?
I’ll have to use copy and copy a rc.modules file instead.