Skip to content
Snippets Groups Projects
Verified Commit 6f6ac6c2 authored by Rafael László's avatar Rafael László :speech_balloon:
Browse files

Add IP Forward configuration option

parent a101e68e
Branches
Tags 0.0.2
No related merge requests found
--- ---
ip_forward: no
...@@ -9,3 +9,6 @@ galaxy_info: ...@@ -9,3 +9,6 @@ galaxy_info:
- 20.04 - 20.04
min_ansible_version: 2.9 min_ansible_version: 2.9
galaxy_tags: [] galaxy_tags: []
collections:
- ansible.posix
...@@ -13,6 +13,15 @@ ...@@ -13,6 +13,15 @@
- iptables - iptables
- iptables-persistent - iptables-persistent
# Setup ip forward
- name: Enable IP Forwarding
ansible.posix.sysctl:
name: net.ipv4.ip_forward
value: "1"
state: present
when: ip_forward
# Setup IPTables folder and files # Setup IPTables folder and files
- name: Manage iptables directory - name: Manage iptables directory
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment