This is to prep for future functionality to upgrade nvm/node versions in the future, or upgrade when running FluxNodeInstall against a previously non-ansible managed FluxNode (node started with multitoolbox only).
This pull request introduces changes to the roles and tasks related to the daemon and nvm. The most important changes include the addition of new tasks for starting and stopping the daemon service, modifications to the nvm installation task to install a specific version of Node, and the addition of tasks to stop Flux via PM2 and stop the Daemon.
Summary of changes:
roles/daemon/tasks/main.yml: Added two new tasks, "Start Daemon Service" and "Stop Daemon Service", which include tasks from separate files.
This is to prep for future functionality to upgrade
nvm
/node
versions in the future, or upgrade when runningFluxNodeInstall
against a previously non-ansible managed FluxNode (node started withmultitoolbox
only).This pull request introduces changes to the roles and tasks related to the daemon and nvm. The most important changes include the addition of new tasks for starting and stopping the daemon service, modifications to the nvm installation task to install a specific version of Node, and the addition of tasks to stop Flux via PM2 and stop the Daemon.
Summary of changes:
roles/daemon/tasks/main.yml
: Added two new tasks, "Start Daemon Service" and "Stop Daemon Service", which include tasks from separate files.roles/daemon/tasks/daemon-start.yml
: Added a new task named "Ensure Scripts Exist" which includes tasks from thedaemon-scripts.yml
file.roles/daemon/tasks/daemon-stop.yml
: Added a new task named "Ensure Scripts Exist" which includes tasks from thedaemon-scripts.yml
file.roles/nvm/tasks/nvm-install.yml
: Modified the task to install a specific version of Node using nvm.roles/nvm/tasks/nvm-purge.yml
: Added two new tasks to stop Flux via PM2 and stop the Daemon.