# platform = multi_platform_rhel,multi_platform_fedora,multi_platform_ol,multi_platform_almalinux,multi_platform_rhv,multi_platform_ubuntu,multi_platform_sle,multi_platform_slmicro
# reboot = true
# strategy = disable
# complexity = low
# disruption = medium
- name: Ensure kernel module 'jffs2' is disabled
  ansible.builtin.lineinfile:
    create: yes
    dest: "/etc/modprobe.d/jffs2.conf"
    regexp: 'install\s+jffs2'
    line: "install jffs2 /bin/false"

- name: Ensure kernel module 'jffs2' is blacklisted
  ansible.builtin.lineinfile:
    create: yes
    dest: "/etc/modprobe.d/jffs2.conf"
    regexp: '^blacklist jffs2$'
    line: "blacklist jffs2"
