This commit is contained in:
2026-01-19 16:11:32 +02:00
parent 36aca2d6b3
commit aca2e0d157

View File

@@ -1166,6 +1166,31 @@
msg:
- "Using passfile for LLDP IPv6 path: {{ dev2_passfile_used_lldp6 | default('NONE') }}"
- name: Publish Dev2 indoor_ip custom field
delegate_to: localhost
uri:
url: "http://{{ rmq_host }}:{{ rmq_port }}/api/exchanges/{{ rmq_vhost|urlencode }}/{{ rmq_exchange|urlencode }}/publish"
method: POST
user: "{{ rmq_user }}"
password: "{{ rmq_pass }}"
force_basic_auth: true
status_code: 200
headers: { content-type: "application/json" }
body_format: json
body:
properties: { content_type: "application/json" }
routing_key: "{{ control_queue }}"
payload: "{{ {
'inscope_device': (ansible_hostname|default(inventory_hostname)),
'task_name': 'custom_field_set',
'task_add1': 'indoor_ip',
'task_result': (indoor_conn_ip | default('na'))
} | to_json }}"
payload_encoding: "string"
changed_when: false
- name: Dev2 | Read firmux (LLDP IPv6 via Dev1)
when:
- tunnel_ok | default(false)