Closed shantanoo-desai closed 11 months ago
uri
module is causing corruption issues on the node-RED server see SE QueryThe only way that currently seems to be wrapping a command
module with curl
:
- name: upload tarballs for Node-RED
ansible.builtin.command:
cmd: >
curl -s -XPOST http://localhost/nodered/nodes -H "Content-Type: multipart/form-data" \
-H "Authorization: {{ auth_token.json.token_type }} {{ auth_token.json.access_token }}" \
-F "tarball=@{{ komponist.deploy_dir }}/nodered/{{ item }};type=application/gzip;filename={{ item }}"
with_items:
- node-red-contrib-influxdb-0.6.1.tgz
Description
Generate a
nodes.json
file in the Deploy directory for Node-RED that contains the following information:Structure
Use this file to install the nodes in online conditions.