This commit is contained in:
2026-01-20 18:51:52 +02:00
parent f30550a016
commit fcf184e492

View File

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