geerlingguy / ansible-role-nodejs

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

chgrp failed: failed to look up group #91

Closed wonderchang closed 4 years ago

wonderchang commented 5 years ago

I got the error

{"changed": false, "gid": 0, "group": "root", "mode": "0755", "msg": "chgrp failed: failed to look up group myuser", "owner": "myuser", "path": "/usr/local/lib/npm", "size": 4096, "state": "directory", "uid": 9058}

In my scenario, for some management policy reasons, the ssh-agent user's name and group are not the same.

https://github.com/geerlingguy/ansible-role-nodejs/blob/48ba494b41bbefab26bb25f3e57382d8bb70099f/tasks/main.yml#L17

Is it possible to make group adjustable?

mamedin commented 5 years ago

I found the same issue when the ssh-agent user's name and group are not the same.

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