53f37da198
Introduce seed_enable_snat and change default to false. Change-Id: I0fde948a306ef9b8cf9525f1e93650d36d5f14f6
15 lines
324 B
YAML
15 lines
324 B
YAML
---
|
|
# Enable SNAT using iptables.
|
|
|
|
- name: Ensure SNAT is configured
|
|
hosts: seed:overcloud
|
|
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
|