A zsh glob failure in the staging step of91bda3cmeant the five renamed playbooks went in as pure renames with their bodies still saying ana-ml2 and 10.250.50.54, and the homepage docker.yaml direct-connection edit from17586abdid not stage either. Same content, just the half that got dropped.
29 lines
1.1 KiB
YAML
29 lines
1.1 KiB
YAML
# fv-ml1: persist the mesh return routes (via ana-scale 10.250.50.45) as an ifupdown if-up.d
|
|
# hook on the VLAN-50 interface. Rerunnable; `ip route replace` is idempotent.
|
|
# scripts/elway infra-ops@10.251.50.54 --playbook playbooks/fv-ml1-mesh-routes.yaml
|
|
steps:
|
|
- name: Install the if-up.d hook
|
|
upload:
|
|
src: playbooks/files/fv-ml1-mesh-routes.sh
|
|
dest: /etc/network/if-up.d/mesh-routes
|
|
mode: "0755"
|
|
sudo: true
|
|
|
|
- name: Apply the routes now (same command the hook runs at ifup)
|
|
shell: IFACE=enp97s0f0np0.50 /etc/network/if-up.d/mesh-routes
|
|
sudo: true
|
|
changed_when: "false"
|
|
|
|
verify:
|
|
- name: All four routes present via ana-scale on the VLAN-50 NIC
|
|
shell: test "$(ip route | grep -c 'via 10.250.50.45 dev enp97s0f0np0.50')" -eq 4
|
|
changed_when: "false"
|
|
|
|
- name: Hook is executable and keyed on the VLAN interface
|
|
shell: test -x /etc/network/if-up.d/mesh-routes && grep -q 'enp97s0f0np0.50' /etc/network/if-up.d/mesh-routes
|
|
changed_when: "false"
|
|
|
|
- name: Off-site reachability holds (nh3-scale answers from here)
|
|
shell: ping -c1 -W2 10.100.50.46 >/dev/null
|
|
changed_when: "false"
|