{"action":"created","issue":{"url":"https://api.github.com/repos/ansible/ansible/issues/29800","repository_url":"https://api.github.com/repos/ansible/ansible","labels_url":"https://api.github.com/repos/ansible/ansible/issues/29800/labels{/name}","comments_url":"https://api.github.com/repos/ansible/ansible/issues/29800/comments","events_url":"https://api.github.com/repos/ansible/ansible/issues/29800/events","html_url":"https://github.com/ansible/ansible/issues/29800","id":256881216,"number":29800,"title":"user module should delete by UID not name","user":{"login":"ansibot","id":6585283,"avatar_url":"https://avatars0.githubusercontent.com/u/6585283?v=4","gravatar_id":"","url":"https://api.github.com/users/ansibot","html_url":"https://github.com/ansibot","followers_url":"https://api.github.com/users/ansibot/followers","following_url":"https://api.github.com/users/ansibot/following{/other_user}","gists_url":"https://api.github.com/users/ansibot/gists{/gist_id}","starred_url":"https://api.github.com/users/ansibot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ansibot/subscriptions","organizations_url":"https://api.github.com/users/ansibot/orgs","repos_url":"https://api.github.com/users/ansibot/repos","events_url":"https://api.github.com/users/ansibot/events{/privacy}","received_events_url":"https://api.github.com/users/ansibot/received_events","type":"User","site_admin":false},"labels":[{"id":437720529,"url":"https://api.github.com/repos/ansible/ansible/labels/affects_1.9","name":"affects_1.9","color":"5319e7","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-09-12T00:32:33Z","updated_at":"2017-09-12T00:32:33Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"From @doanerock on 2016-05-10T06:05:39Z\r\n##### ISSUE TYPE\n- Feature Idea\n##### COMPONENT NAME\n\nuser module\n##### ANSIBLE VERSION\n\nansible 1.9.4\n##### CONFIGURATION\n\nI am trying to clean up a username issue, that is a mess. Currently there are two names, but ansibile is not able to delete any of them because it is trying to delete by name not UID which is unique. \n##### OS / ENVIRONMENT\n\nCentOS release 6.7 (Final)\n##### SUMMARY\n\nI need to rename a username attached to a UID from old to new.  \n\nWhile there is alo a name by the same new name present, if I am able to make chagnes based on the UID then ansible would not get confused. \n##### STEPS TO REPRODUCE\n\nfailed: [server] => {\"failed\": true, \"name\": \"username\", \"rc\": 1}\nmsg: Multiple entries named 'username' in /etc/passwd. Please fix this with pwck or grpck.\nuserdel: cannot remove entry 'username' from /etc/passwd\n##### EXPECTED RESULTS\n\nI deleted username with UID ...\n##### ACTUAL RESULTS\n\nit complains when there are two users by the same name\n\r\nCopied from original issue: ansible/ansible-modules-core#3626\r\n"},"comment":{"url":"https://api.github.com/repos/ansible/ansible/issues/comments/328696509","html_url":"https://github.com/ansible/ansible/issues/29800#issuecomment-328696509","issue_url":"https://api.github.com/repos/ansible/ansible/issues/29800","id":328696509,"user":{"login":"ansibot","id":6585283,"avatar_url":"https://avatars0.githubusercontent.com/u/6585283?v=4","gravatar_id":"","url":"https://api.github.com/users/ansibot","html_url":"https://github.com/ansibot","followers_url":"https://api.github.com/users/ansibot/followers","following_url":"https://api.github.com/users/ansibot/following{/other_user}","gists_url":"https://api.github.com/users/ansibot/gists{/gist_id}","starred_url":"https://api.github.com/users/ansibot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ansibot/subscriptions","organizations_url":"https://api.github.com/users/ansibot/orgs","repos_url":"https://api.github.com/users/ansibot/repos","events_url":"https://api.github.com/users/ansibot/events{/privacy}","received_events_url":"https://api.github.com/users/ansibot/received_events","type":"User","site_admin":false},"created_at":"2017-09-12T00:32:33Z","updated_at":"2017-09-12T00:32:33Z","author_association":"CONTRIBUTOR","body":"From @krzysztof-magosa on 2016-05-10T06:05:39Z\r\n\r\nWhile it's legal to have two users having the same uid it's illegal to have many users with the same username. So I would say Ansible is working in right way.\n"}}
{"actor":{"display_login":"ansibot"}}