This commit is contained in:
2026-04-01 17:38:20 +03:00
parent 42afc7086c
commit 013c22bfa4

View File

@@ -1310,26 +1310,26 @@
when: not (_blocked | default(false)) and (_write_success | bool)
delegate_to: localhost
- name: Publish sot-updater-scheduler payload to deviceconfig
when: sot_updater_payload is defined
delegate_to: localhost
ansible.builtin.uri:
url: "http://{{ rmq_host }}:{{ rmq_port }}/api/exchanges/{{ rmq_vhost | urlencode }}/{{ 'deviceconfig' | 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: "deviceconfig"
payload: "{{ sot_updater_payload | to_json }}"
payload_encoding: "string"
changed_when: false
- name: Publish sot-updater-scheduler payload to deviceconfig
when: sot_updater_payload is defined
delegate_to: localhost
ansible.builtin.uri:
url: "http://{{ rmq_host }}:{{ rmq_port }}/api/exchanges/{{ rmq_vhost | urlencode }}/{{ 'deviceconfig' | 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: "deviceconfig"
payload: "{{ sot_updater_payload | to_json }}"
payload_encoding: "string"
changed_when: false
# ---------------------------- Final operator summary (one-liners) ----------------------------
- name: Summary key outcomes (one-liners)