Add hetzner-floating-ip.service systemd unit to base role so that the floating IP is bound to eth0 on every boot. The task is conditional (runs only when hetzner_floating_ip is defined in host_vars). Add 49.12.116.113 as the floating IP for iklim-app-01 in test host_vars.
3 lines
71 B
YAML
3 lines
71 B
YAML
hetzner_floating_ip: "49.12.116.113"
|
|
hetzner_primary_interface: "eth0"
|