# Using Ansible with pi install script

**URL:** <https://discourse.nodered.org/t/using-ansible-with-pi-install-script/95571>\
**Category:** General\
**Created:** [22 February 2025 13:31 UTC](https://discourse.nodered.org/t/using-ansible-with-pi-install-script/95571 "2025-02-22T13:31:22Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [22 February 2025 13:31 UTC](https://discourse.nodered.org/t/using-ansible-with-pi-install-script/95571/1 "2025-02-22T13:31:22Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)\
**Post date:** [22 February 2025 14:47 UTC](https://discourse.nodered.org/t/using-ansible-with-pi-install-script/95571/2 "2025-02-22T14:47:49Z")

</div>

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 )

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [22 February 2025 15:20 UTC](https://discourse.nodered.org/t/using-ansible-with-pi-install-script/95571/3 "2025-02-22T15:20:03Z")

</div>

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 🙂

---

<div class="post-metadata">

**Author:** ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)\
**Post date:** [22 February 2025 16:07 UTC](https://discourse.nodered.org/t/using-ansible-with-pi-install-script/95571/4 "2025-02-22T16:07:10Z")

</div>

Until next year

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [22 February 2025 16:20 UTC](https://discourse.nodered.org/t/using-ansible-with-pi-install-script/95571/5 "2025-02-22T16:20:46Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)\
**Post date:** [22 February 2025 16:34 UTC](https://discourse.nodered.org/t/using-ansible-with-pi-install-script/95571/6 "2025-02-22T16:34:08Z")

</div>

Probably. Though you may have to also specify old version of Node-RED at same time

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [22 February 2025 17:27 UTC](https://discourse.nodered.org/t/using-ansible-with-pi-install-script/95571/7 "2025-02-22T17:27:47Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)\
**Post date:** [22 February 2025 21:36 UTC](https://discourse.nodered.org/t/using-ansible-with-pi-install-script/95571/8 "2025-02-22T21:36:20Z")

</div>

and if it is a general purpose script then please share !

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [22 February 2025 21:51 UTC](https://discourse.nodered.org/t/using-ansible-with-pi-install-script/95571/9 "2025-02-22T21:51:42Z")

</div>

Indeed I will.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [23 May 2025 21:52 UTC](https://discourse.nodered.org/t/using-ansible-with-pi-install-script/95571/10 "2025-05-23T21:52:07Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
