# Deploy nodered with ansible + systemd

**URL:** <https://discourse.nodered.org/t/deploy-nodered-with-ansible-systemd/67987>\
**Category:** Share Your Projects\
**Created:** [20 September 2022 17:37 UTC](https://discourse.nodered.org/t/deploy-nodered-with-ansible-systemd/67987 "2022-09-20T17:37:43Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![mellerbeck](https://avatars.discourse-cdn.com/v4/letter/m/e9bcb4/32.png) [@mellerbeck](https://discourse.nodered.org/u/mellerbeck)\
**Post date:** [20 September 2022 17:37 UTC](https://discourse.nodered.org/t/deploy-nodered-with-ansible-systemd/67987/1 "2022-09-20T17:37:43Z")

</div>

> **[Deploy nodered with ansible + systemd](https://michaelellerbeck.com/2022/09/15/deploy-nodered-with-ansible-systemd/)**
>
> I wanted to be able to deploy nodered using ansible to Ubuntu. I wanted to deploy multiple copies, run them as a service with systemd, run on different ports, and configure an admin password. It is…

---

<div class="post-metadata">

**Author:** ![ChZeman](https://avatars.discourse-cdn.com/v4/letter/c/76d3ee/32.png) [@ChZeman](https://discourse.nodered.org/u/ChZeman)\
**Post date:** [21 December 2023 00:27 UTC](https://discourse.nodered.org/t/deploy-nodered-with-ansible-systemd/67987/2 "2023-12-21T00:27:31Z")

</div>

Thank you for sharing! This was a big help! I customized it a bit for my needs but it works well! Have you come up with anything for having ansible check for updates and installing them?

Chris

---

<div class="post-metadata">

**Author:** ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)\
**Post date:** [21 December 2023 11:35 UTC](https://discourse.nodered.org/t/deploy-nodered-with-ansible-systemd/67987/3 "2023-12-21T11:35:28Z")

</div>

I missed this first time around, thanks for the shout-out to my alternate installer 👍 🙂

---

<div class="post-metadata">

**Author:** ![ChZeman](https://avatars.discourse-cdn.com/v4/letter/c/76d3ee/32.png) [@ChZeman](https://discourse.nodered.org/u/ChZeman)\
**Post date:** [21 December 2023 14:06 UTC](https://discourse.nodered.org/t/deploy-nodered-with-ansible-systemd/67987/4 "2023-12-21T14:06:05Z")

</div>

The alternate installer is great, Julian! The only thing I'm a little confused about is updating. Is it ok to simply call npm run update-master and npm run update-data? I'm looking for the easiest way to update my fleet of 50 Pis using ansible. lol

---

<div class="post-metadata">

**Author:** ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)\
**Post date:** [21 December 2023 15:16 UTC](https://discourse.nodered.org/t/deploy-nodered-with-ansible-systemd/67987/6 "2023-12-21T15:16:04Z")

</div>

> [@ChZeman](#):
>
> Is it ok to simply call npm run update-master and npm run update-data?

Yes, absolutely. The master update will update Node-RED itself and anything else installed at that level. The data update will update all installed nodes and anything else installed to the userDir.

Of course, because you are doing a "manual" update as far as Node-RED is concerned, you also have to restart Node-RED.

The only time to watch out is if you have also done a Node.js major version upgrade because then you should immediately to an `npm rebuild` on both levels.

If using UIBUILDER, you might also choose to update the packages in the uibRoot folder as well.

---

<div class="post-metadata">

**Author:** ![ChZeman](https://avatars.discourse-cdn.com/v4/letter/c/76d3ee/32.png) [@ChZeman](https://discourse.nodered.org/u/ChZeman)\
**Post date:** [21 December 2023 15:55 UTC](https://discourse.nodered.org/t/deploy-nodered-with-ansible-systemd/67987/7 "2023-12-21T15:55:01Z")

</div>

Thank you, Julian!

On uibuilder... I watched one of your videos and finally have an understanding of it and am working on replacing Dashboard in a few projects right now!

---

<div class="post-metadata">

**Author:** ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)\
**Post date:** [21 December 2023 16:12 UTC](https://discourse.nodered.org/t/deploy-nodered-with-ansible-systemd/67987/8 "2023-12-21T16:12:26Z")

</div>

Watch out for a quick share in the forum - I've started work on a new version of my own home dashboard as well - at long last.
