# modprobe\_module, when setting state=present, where is it saved for adding the module at next boot ?

**URL:** <https://forum.ansible.com/t/modprobe-module-when-setting-state-present-where-is-it-saved-for-adding-the-module-at-next-boot/16803>\
**Category:** Ansible Project\
**Created:** [November 17, 2014, 9:22am UTC](https://forum.ansible.com/t/modprobe-module-when-setting-state-present-where-is-it-saved-for-adding-the-module-at-next-boot/16803 "2014-11-17T09:22:51Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Stefan\_Eriksson](https://avatars.discourse-cdn.com/v4/letter/s/3e96dc/32.png) [@Stefan\_Eriksson](https://forum.ansible.com/u/Stefan_Eriksson)\
**Post date:** [November 17, 2014, 9:22am UTC](https://forum.ansible.com/t/modprobe-module-when-setting-state-present-where-is-it-saved-for-adding-the-module-at-next-boot/16803/1 "2014-11-17T09:22:51Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Michael\_DeHaan1](https://avatars.discourse-cdn.com/v4/letter/m/5e9695/32.png) [@Michael\_DeHaan1](https://forum.ansible.com/u/Michael_DeHaan1)\
**Post date:** [November 17, 2014, 8:44pm UTC](https://forum.ansible.com/t/modprobe-module-when-setting-state-present-where-is-it-saved-for-adding-the-module-at-next-boot/16803/2 "2014-11-17T20:44:17Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Stefan\_Eriksson](https://avatars.discourse-cdn.com/v4/letter/s/3e96dc/32.png) [@Stefan\_Eriksson](https://forum.ansible.com/u/Stefan_Eriksson)\
**Post date:** [November 17, 2014, 9:41pm UTC](https://forum.ansible.com/t/modprobe-module-when-setting-state-present-where-is-it-saved-for-adding-the-module-at-next-boot/16803/3 "2014-11-17T21:41:12Z")

</div>

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.
