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

1,278 views
Skip to first unread message

Stefan Eriksson

unread,
Nov 17, 2014, 4:22:51 AM11/17/14
to ansible...@googlegroups.com
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

Michael DeHaan

unread,
Nov 17, 2014, 3:44:20 PM11/17/14
to ansible...@googlegroups.com
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.



--
You received this message because you are subscribed to the Google Groups "Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ansible-proje...@googlegroups.com.
To post to this group, send email to ansible...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/89521b45-aa45-48c2-a05f-a9459bb67748%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Stefan Eriksson

unread,
Nov 17, 2014, 4:41:12 PM11/17/14
to ansible...@googlegroups.com
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.
Reply all
Reply to author
Forward
0 new messages