This commit is contained in:
2026-01-26 17:17:38 +02:00
parent 65874dcfb2
commit 6eb312c334
2 changed files with 15 additions and 8 deletions

View File

@@ -1036,6 +1036,13 @@
args: { executable: /bin/bash }
changed_when: true
- name: PHASE 1 | initiating actual upgrade
delegate_to: localhost
ansible.builtin.shell: |
export DEV2_CMD="/usr/sbin/config-test.lua 300 ; sleep 10; killall lldp-server "
{{ dev2_exec_cmd }}
args: { executable: /bin/bash }
changed_when: true
post_tasks:
- name: Cleanup note

View File

@@ -66,14 +66,14 @@
dev2_lldp_digits: "{{ (inventory_hostname | string) | regex_replace('[^0-9]', '') }}"
changed_when: false
- name: Restart LLDP on DEV1 to refresh DEV2 management data
ansible.builtin.raw: >
{{ pathprefix }}
mv /tmp/launchd/services/lldp-server /root/lldp-server;
sleep 2;
mv /root/lldp-server /tmp/launchd/services/lldp-server;
sleep 65
ignore_errors: true
# - name: Restart LLDP on DEV1 to refresh DEV2 management data
# ansible.builtin.raw: >
# {{ pathprefix }}
# mv /tmp/launchd/services/lldp-server /root/lldp-server;
# sleep 2;
# mv /root/lldp-server /tmp/launchd/services/lldp-server;
# sleep 65
# ignore_errors: true
- name: Discover DEV2 candidate IPv4 via LLDP on DEV1 (best-effort)