19 lines
718 B
YAML
19 lines
718 B
YAML
---
|
|
# lab-only: pin *.goa.local → 127.0.0.1 inside goa-regio-ng
|
|
# ephemeral on container recreate — re-run after recreate / before site.yml wait-on-bank
|
|
# inventory: goa-regio-ng-koopa.yml (same SSH ProxyCommand)
|
|
#
|
|
# ansible-playbook -i goa-regio-ng-koopa.yml lab-hosts.yml
|
|
|
|
- name: lab hosts goa.local
|
|
hosts: regional_currency
|
|
gather_facts: false
|
|
tasks:
|
|
- name: /etc/hosts *.goa.local → 127.0.0.1
|
|
ansible.builtin.blockinfile:
|
|
path: /etc/hosts
|
|
marker: "# {mark} ANSIBLE LAB goa.local"
|
|
# podman systemd: /etc/hosts often EBUSY on atomic rename
|
|
unsafe_writes: true
|
|
block: |
|
|
127.0.0.1 bank.goa.local exchange.goa.local backend.goa.local goa.local
|