Commit 4b797db8 authored by Maciej Delmanowski's avatar Maciej Delmanowski

Merge branch 'ypid-fix/kmod'

parents 912378d2 6fc5667b
Pipeline #19457619 passed with stages
in 5 minutes and 2 seconds
......@@ -38,7 +38,6 @@
include_tasks: 'modprobe.yml'
loop_control:
loop_var: 'module'
register: kmod__register_modprobe_tasks
with_items: '{{ kmod__combined_modules | parse_kv_items }}'
when: kmod__enabled|bool
......@@ -58,7 +57,3 @@
mode: '0644'
with_items: '{{ kmod__combined_load | parse_kv_items }}'
when: kmod__enabled|bool and item.name|d() and item.state|d('present') not in [ 'absent', 'ignore' ]
- name: Update Ansible facts if the list of load kernel modules might have changed
action: setup
when: kmod__register_modprobe_tasks is changed
......@@ -35,3 +35,8 @@
kmod__register_module_config_create is changed) and
module.blacklist is not defined and
module.state|d('present') not in [ 'config', 'absent', 'blacklist' ])
- name: Update Ansible facts if the list of loaded kernel modules might have changed
action: setup
when: (kmod__register_module_config_delete is changed or
kmod__register_module_config_create is changed)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment