1738
This commit is contained in:
@@ -1310,26 +1310,26 @@
|
|||||||
when: not (_blocked | default(false)) and (_write_success | bool)
|
when: not (_blocked | default(false)) and (_write_success | bool)
|
||||||
delegate_to: localhost
|
delegate_to: localhost
|
||||||
|
|
||||||
- name: Publish sot-updater-scheduler payload to deviceconfig
|
- name: Publish sot-updater-scheduler payload to deviceconfig
|
||||||
when: sot_updater_payload is defined
|
when: sot_updater_payload is defined
|
||||||
delegate_to: localhost
|
delegate_to: localhost
|
||||||
ansible.builtin.uri:
|
ansible.builtin.uri:
|
||||||
url: "http://{{ rmq_host }}:{{ rmq_port }}/api/exchanges/{{ rmq_vhost | urlencode }}/{{ 'deviceconfig' | urlencode }}/publish"
|
url: "http://{{ rmq_host }}:{{ rmq_port }}/api/exchanges/{{ rmq_vhost | urlencode }}/{{ 'deviceconfig' | urlencode }}/publish"
|
||||||
method: POST
|
method: POST
|
||||||
user: "{{ rmq_user }}"
|
user: "{{ rmq_user }}"
|
||||||
password: "{{ rmq_pass }}"
|
password: "{{ rmq_pass }}"
|
||||||
force_basic_auth: true
|
force_basic_auth: true
|
||||||
status_code: 200
|
status_code: 200
|
||||||
headers:
|
headers:
|
||||||
content-type: "application/json"
|
content-type: "application/json"
|
||||||
body_format: json
|
body_format: json
|
||||||
body:
|
body:
|
||||||
properties:
|
properties:
|
||||||
content_type: "application/json"
|
content_type: "application/json"
|
||||||
routing_key: "deviceconfig"
|
routing_key: "deviceconfig"
|
||||||
payload: "{{ sot_updater_payload | to_json }}"
|
payload: "{{ sot_updater_payload | to_json }}"
|
||||||
payload_encoding: "string"
|
payload_encoding: "string"
|
||||||
changed_when: false
|
changed_when: false
|
||||||
|
|
||||||
# ---------------------------- Final operator summary (one-liners) ----------------------------
|
# ---------------------------- Final operator summary (one-liners) ----------------------------
|
||||||
- name: Summary key outcomes (one-liners)
|
- name: Summary key outcomes (one-liners)
|
||||||
|
|||||||
Reference in New Issue
Block a user