TechDufus / FluxNodeInstall

Install a RunOnFlux Node with 100% Ansible.
MIT License
8 stars 4 forks source link

Nvm/update node version #77

Open TechDufus opened 9 months ago

TechDufus commented 9 months ago

TLDR: Create an update / upgrade path for nvm/node versions without borking nodes. This will allow upgrades / downgrades to the nvm.node.version provided in the vars.yml file.

This pull request includes changes to the roles and variables related to NVM, Node, Logrotate, PM2, and Watchdog. The most important changes include adding tasks to check and install NVM and Node, installing Logrotate, PM2, and Watchdog, and updating the Node version in the vars.yml file.

Summary of changes:

TechDufus commented 9 months ago

I marked as draft, because if merged as-is, this will require a full node and nvm purge in order to update node (which will need to reinstall nvm). If we break out the node install steps into it's own role node, we can easily uninstall node and reinstall the desired version without having to reinstall nvm itself.

I will work on breaking the current nvm role into --> nvm & node roles.