summaryrefslogtreecommitdiff
path: root/roles/configure_sysctl/tasks
diff options
context:
space:
mode:
authorNiklas Yann Wettengel <niyawe@niyawe.de>2017-07-02 15:24:53 +0200
committerNiklas Yann Wettengel <niyawe@niyawe.de>2017-07-02 15:24:53 +0200
commit90a8a597eaa3a008eac946460b5c621eafa8ec62 (patch)
tree7381d395bf2ff7d60c487e0e85730a7c9641c549 /roles/configure_sysctl/tasks
parentd18d1ffd4f1a902b8dc555bbc7fe25e471920780 (diff)
sysctl: load nf_conntrack module
Diffstat (limited to 'roles/configure_sysctl/tasks')
-rw-r--r--roles/configure_sysctl/tasks/main.yml10
1 files changed, 10 insertions, 0 deletions
diff --git a/roles/configure_sysctl/tasks/main.yml b/roles/configure_sysctl/tasks/main.yml
index 04e0bef..e13de67 100644
--- a/roles/configure_sysctl/tasks/main.yml
+++ b/roles/configure_sysctl/tasks/main.yml
@@ -1,4 +1,14 @@
---
+- name: load nf_conntrack kernel module at boot
+ copy:
+ src: modules-load.d_nf_conntrack.conf
+ dest: /etc/modules-load.d/nf_conntrack.conf
+
+- name: load nf_conntrack kernel module
+ modprobe:
+ name: nf_conntrack
+ state: present
+
- name: touch sysctl.conf
copy:
content: ''