This commit is contained in:
2026-02-15 10:44:44 +02:00
parent dc5aff7e98
commit 43750e3549
3 changed files with 55 additions and 8 deletions

View File

@@ -376,7 +376,7 @@
changed_when: (rmq_cleanup_success.json is defined) and (rmq_cleanup_success.json.routed | default(false) | bool)
# Scheduled success only: chain next step (set action_next + trigger worker)
- name: Scheduled success | Set action_next to sot-updater-wrapper
- name: Scheduled success | Set action_next to sot-updater-scheduler
when: journal_success_payload is defined and (is_run_by_effective | default('manual')) == 'scheduler'
delegate_to: localhost
ansible.builtin.uri:
@@ -393,11 +393,11 @@
properties:
content_type: "application/json"
routing_key: "{{ control_queue }}"
payload: "{{ { 'inscope_device': (ansible_hostname | default(inventory_hostname)), 'task_name': 'custom_field_set', 'task_add1': 'action_next', 'task_result': 'sot-updater-wrapper' } | to_json }}"
payload: "{{ { 'inscope_device': (ansible_hostname | default(inventory_hostname)), 'task_name': 'custom_field_set', 'task_add1': 'action_next', 'task_result': 'sot-updater-scheduler' } | to_json }}"
payload_encoding: "string"
changed_when: false
- name: Scheduled success | Publish sot-updater-wrapper work message
- name: Scheduled success | Publish sot-updater-scheduler work message
when: journal_success_payload is defined and (is_run_by_effective | default('manual')) == 'scheduler'
delegate_to: localhost
ansible.builtin.uri:
@@ -414,7 +414,7 @@
properties:
content_type: "application/json"
routing_key: "deviceconfig"
payload: "{{ { 'inscope_device': (ansible_hostname | default(inventory_hostname)), 'task_name': 'sot-updater-wrapper' } | to_json }}"
payload: "{{ { 'inscope_device': (ansible_hostname | default(inventory_hostname)), 'task_name': 'sot-updater-scheduler' } | to_json }}"
payload_encoding: "string"
changed_when: false