Skip to content

Conversation

@TechDufus
Copy link
Owner

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:

  • roles/nvm/tasks/nvm-install.yml: Added tasks to check if NVM and Node are installed, get the installed Node version, determine if a Node update is needed, install Logrotate, PM2, and Watchdog, and start PM2 after installation. [1] [2]
  • roles/nvm/tasks/nvm-purge.yml: Added tasks to purge Logrotate, PM2, and Watchdog with specific tags and elevated privileges.
  • roles/pm2/tasks/pm2-stop.yml: Added the ignore_errors option to the ansible.builtin.shell task to allow it to continue executing even if it encounters an error.
  • vars.yml: Updated the Node version from 16.19.1 to 20.9.0 to specify the desired version of Node to be installed.

@TechDufus TechDufus linked an issue Jan 4, 2024 that may be closed by this pull request
@TechDufus TechDufus marked this pull request as draft January 12, 2024 15:20
@TechDufus
Copy link
Owner Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[FEATURE_REQUEST] Upgrade to node 20

2 participants