debian: switch to generic version

This patch moves Debian to a generic version as well as makes
the conntrack modules only used/added for older kernels that
need it.

Change-Id: I4da59a479c8b512865386213a3c7b69078589267
This commit is contained in:
Mohammed Naser 2019-05-05 18:03:01 -06:00
parent 145038ab78
commit 5ae041b6d0
1 changed files with 3 additions and 2 deletions

View File

@ -39,8 +39,9 @@ openstack_host_kernel_modules:
- name: iscsi_tcp
- name: nbd
- name: nf_conntrack
- name: nf_conntrack_ipv4
- name: nf_conntrack_ipv6
# NOTE(mnaser): 4.19 kernel merged nf_conntrack_ipv{4,6} into nf_conntrack
- name: "{% if hostvars[inventory_hostname]['ansible_kernel'] | version_compare('4.19.0', '<=') %}nf_conntrack_ipv4{% endif %}"
- name: "{% if hostvars[inventory_hostname]['ansible_kernel'] | version_compare('4.19.0', '<=') %}nf_conntrack_ipv6{% endif %}"
- name: nf_defrag_ipv4
- name: nf_nat
- name: nf_nat_ipv4