--- # 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