kayobe/ansible/snat.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
259 B
YAML

---
# Enable SNAT using iptables.
- name: Ensure SNAT is configured
hosts: seed:controllers
vars:
snat_rules:
- interface: "{{ ansible_default_ipv4.interface }}"
source_ip: "{{ ansible_default_ipv4.address }}"
roles:
- role: snat