From 2f698b1304ea81e0d36ca5fc606ad8b9b325d60f Mon Sep 17 00:00:00 2001 From: Cory Hawkless Date: Thu, 1 Jul 2021 23:43:24 +0930 Subject: [PATCH] iptables ans ip6tables into modules file --- tasks/main.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/tasks/main.yml b/tasks/main.yml index 99f1803..ab3a075 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -56,3 +56,17 @@ state: present line: 'bonding' tags: interfaces + +- name: Make sure ip-tables makes it into /etc/modules for loading at boot time + lineinfile: + path: /etc/modules + state: present + line: 'ip-tables' + tags: interfaces + +- name: Make sure ip6-tables makes it into /etc/modules for loading at boot time + lineinfile: + path: /etc/modules + state: present + line: 'ip6-tables' + tags: interfaces