xoxys.kernel/templates/etc/modprobe.d/custom.conf.j2
Robert Kaussow ca27e64ad4
All checks were successful
continuous-integration/drone/push Build is passing
fix: disable and blacklist modules from kernel_disable_modules
2022-09-18 13:04:02 +02:00

12 lines
343 B
Django/Jinja

#jinja2: lstrip_blocks: True
{{ ansible_managed | comment }}
{% for module in kernel_disable_modules %}
install {{ module }} /bin/true
{% endfor %}
{% if (kernel_blacklist_modules + kernel_disable_modules) | length > 0 %}
{% for module in (kernel_blacklist_modules + kernel_disable_modules) %}
blacklist {{ module }}
{% endfor %}
{% endif %}