geerlingguy / ansible-role-nodejs

Ansible Role - Node.js
https://galaxy.ansible.com/geerlingguy/nodejs/
MIT License
410 stars 252 forks source link

nodejs gets upgraded if defined version is lower than OS version #150

Closed damosc closed 6 months ago

damosc commented 1 year ago

Steps to reproduce

Expected result

apt upgrade should not upgrade nodejs package, even if the defined nodejs_version is lower than the one that comes per default with operating system.

Possible solution

I'm not sure how good it is, but I solved it with

- name: prevent nodejs package from being upgraded
  ansible.builtin.dpkg_selections:
    name: nodejs
    selection: hold
github-actions[bot] commented 8 months ago

This issue has been marked 'stale' due to lack of recent activity. If there is no further activity, the issue will be closed in another 30 days. Thank you for your contribution!

Please read this blog post to see the reasons why I mark issues as stale.

github-actions[bot] commented 6 months ago

This issue has been closed due to inactivity. If you feel this is in error, please reopen the issue or file a new issue with the relevant details.