kayobe/ansible/roles/ip-routing/tasks/main.yml
Mark Goddard b2a60340c2 Enable IP routing and SNAT in seed for use during provisioning
Without this there may not be a gateway configured after the control plane nodes
are provisioned, meaning they cannot access the outside world.
2017-03-30 11:04:27 +01:00

12 lines
326 B
YAML

---
- name: Ensure IP routing sysctls are set
sysctl:
name: "{{ item.name }}"
value: "{{ item.value }}"
sysctl_set: "yes"
with_items:
- { name: "net.ipv4.ip_forward", value: 1}
- { name: "net.ipv4.conf.all.rp_filter", value: 0}
- { name: "net.ipv4.conf.default.rp_filter", value: 0}
become: True