Has anyone here used Ansible to install node red and nodejs using the Pi install script?
I can see from the help that it can be run silently, but I would be interested to know how others have determined whether it needs to be run at all.
Has anyone here used Ansible to install node red and nodejs using the Pi install script?
I can see from the help that it can be run silently, but I would be interested to know how others have determined whether it needs to be run at all.
Personally if using Ansible I would just do what the script does directly in Ansible itself - ie - install the version of nodejs you want, then use npm to install Node-RED, and then install some extra nodes that you need. etc..
(rather than run the script that tries to be too clever for it's own good sometimes :0 )
That is what I have been doing, and it used to work, but it no longer works on old pi hardware as there are not official builds of nodejs for that hardware. Not to mention the problem I had with bcrypt a few days ago. So I thought it would be good to let @dceejay take the strain for me, keeping the script working into the future so I can relax
Until next year
You won't remove the ability to install nodejs 20 on the old pi h/w will you? The existing version still allows back to 16.
Probably. Though you may have to also specify old version of Node-RED at same time
Having thought about it further I think anyway, rather than use the install script, I might just steal borrow from your script and install nodejs manually (under ansible) using the same technique that you do.
and if it is a general purpose script then please share !
Indeed I will.