geerlingguy / ansible-role-nodejs

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

Yum repo config doesn't update when version changes #120

Closed emmetog closed 3 years ago

emmetog commented 3 years ago

Hi!

The yum repo config file at /etc/yum.repos.d/nodesource-el7.repo doesn't get updated when the VM was fully provisioned with node 8 (for example) and then the version is changed to 10 and provisioned again. This results in the following error message:

FAILED! => {"changed": false, "msg": "No package matching 'nodejs-10.*' found available, installed or updated", "rc": 126, "results": ["No package matching 'nodejs-10.*' found available, installed or updated"]}

The temporary workaround is to remove that file manually and let ansible re-template it.

stale[bot] commented 3 years 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.

stale[bot] commented 3 years 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.