collection of ansible roles
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

21 lines
453 B

---
- name: ipv4 forwarding
sysctl:
name: net.inet.ip.forwarding
value: 1
state: present
reload: yes
- name: ipv6 forwarding
sysctl:
name: net.inet6.ip6.forwarding
value: 1
state: present
reload: yes
- name: pf rules
lineinfile:
path: /etc/anchors/ansible
line: "{{ item }}"
with_items:
- "match out on egress from !egress nat-to egress:0"
- "pass out on egress from egress:0"
notify: reload pf