kayobe/ansible/snat.yml
Michał Nasiadka 53f37da198 seed: Disable SNAT configuration by default
Introduce seed_enable_snat and change default to false.

Change-Id: I0fde948a306ef9b8cf9525f1e93650d36d5f14f6
2021-09-29 18:46:25 +02:00

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