Role network-iptables-gateway: load module nf_conntrack at boot

This commit is contained in:
Julian Labus 2018-02-23 19:32:30 +01:00
parent ce47909a2c
commit f81a5c1a5f
No known key found for this signature in database
GPG key ID: 8AF209F2C6B3572A
2 changed files with 10 additions and 0 deletions

View file

@ -7,6 +7,11 @@
- iptables
- iptables-persistent
- name: configure nf_conntrack module to load on system boot
template:
src: nf_conntrack.module.conf.j2
dest: /etc/modules-load.d/nf_conntrack.conf
- name: load netfilter modules
modprobe:
name: "{{ item }}"

View file

@ -0,0 +1,5 @@
#
# Load nf_conntrack module on system boot
# {{ ansible_managed }}
#
nf_conntrack