e10b52c588
Adds an ability to enable SNAT service on the seed hypervisor. Depends-On: Ie42ab7a0dc9dd1ed1925b3a17134b3770ae8ba98 Change-Id: I0a2ff5caa01d54b1532d30d501b55ef23a6deff8 Signed-off-by: Maksim Malchuk <maksim.malchuk@gmail.com>
15 lines
325 B
YAML
15 lines
325 B
YAML
---
|
|
# Enable SNAT using iptables.
|
|
|
|
- name: Ensure SNAT is configured
|
|
hosts: seed-hypervisor:seed
|
|
tags:
|
|
- snat
|
|
vars:
|
|
snat_rules:
|
|
- interface: "{{ ansible_facts.default_ipv4.interface }}"
|
|
source_ip: "{{ ansible_facts.default_ipv4.address }}"
|
|
roles:
|
|
- role: snat
|
|
when: enable_snat | bool
|