kayobe/ansible/snat.yml
Maksim Malchuk 8986173237 Limit ip-routing and snat to seed hosts only
Even if kayobe itself limit [1] ip-routing and snat playbooks to the
seed hosts only the playbooks should have same hosts specified.

TrivialFix

1. 52d7523c0c/kayobe/cli/commands.py (L610)

Change-Id: I35788e69eeace41d5bcbf89922145f1c35f58ff2
Signed-off-by: Maksim Malchuk <maksim.malchuk@gmail.com>
2021-11-24 02:27:33 +03:00

15 lines
314 B
YAML

---
# Enable SNAT using iptables.
- name: Ensure SNAT is configured
hosts: seed
tags:
- snat
vars:
snat_rules:
- interface: "{{ ansible_facts.default_ipv4.interface }}"
source_ip: "{{ ansible_facts.default_ipv4.address }}"
roles:
- role: snat
when: seed_enable_snat | bool