d8fe45b3d8
Having tagged plays allows us to easily run a subset of the plays for a command, and perform targeted operations with less risk of unintended consequences. The tags are typically named after the playbook, although some of the overcloud playbooks have been tagged without an overcloud- prefix.
14 lines
276 B
YAML
14 lines
276 B
YAML
---
|
|
# Enable SNAT using iptables.
|
|
|
|
- name: Ensure SNAT is configured
|
|
hosts: seed:overcloud
|
|
tags:
|
|
- snat
|
|
vars:
|
|
snat_rules:
|
|
- interface: "{{ ansible_default_ipv4.interface }}"
|
|
source_ip: "{{ ansible_default_ipv4.address }}"
|
|
roles:
|
|
- role: snat
|