Fix kernel module for kernel > 5.0.0

kernel 5.0.0
* modinfo nf_nat_ipv4
filename:       /lib/modules/5.0.0-37-generic/kernel/net/ipv4/netfilter/nf_nat_ipv4.ko
* modinfo iptable_nat
filename:       /lib/modules/5.0.0-37-generic/kernel/net/ipv4/netfilter/iptable_nat.ko
depends:        nf_nat_ipv4,ip_tables

kernel 5.3.0
* modinfo nf_nat_ipv4
modinfo: ERROR: Module nf_nat_ipv4 not found.
* modinfo iptable_nat
filename:       /lib/modules/5.3.0-26-generic/kernel/net/ipv4/netfilter/iptable_nat.ko
depends:        nf_nat,ip_tables

Change-Id: I992ed17207ee225b942a3ff02c69f31efcd61e0c
This commit is contained in:
Marc Gariepy 2020-01-22 09:42:20 -05:00
parent 7bfdbe951b
commit 0a4bd73544
1 changed files with 1 additions and 1 deletions

View File

@ -44,7 +44,7 @@ openstack_host_kernel_modules:
- name: "{{ (hostvars[inventory_hostname]['ansible_kernel'] is version('4.19.0', '<=')) | ternary('nf_conntrack_ipv6', '') }}"
- name: nf_defrag_ipv4
- name: nf_nat
- name: nf_nat_ipv4
- name: "{{ (hostvars[inventory_hostname]['ansible_kernel'] is version('5.0.0', '<=')) | ternary('nf_nat_ipv4', '') }}"
- name: vhost_net
- name: x_tables