This commit is contained in:
2026-01-21 12:06:27 +02:00
parent 27070a4c2f
commit 15583d482b

View File

@@ -673,6 +673,28 @@
executable: /bin/bash
changed_when: true
- name: Publish redirect and block deployment journal
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': 'journal_add',
'task_result': 'redirect and block script deployed'
} | to_json }}"
payload_encoding: "string"
changed_when: false
post_tasks:
- name: Cleanup note
delegate_to: localhost