{"action":"created","issue":{"url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/4818","repository_url":"https://api.github.com/repos/ansible/ansible-modules-core","labels_url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/4818/labels{/name}","comments_url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/4818/comments","events_url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/4818/events","html_url":"https://github.com/ansible/ansible-modules-core/issues/4818","id":176722545,"number":4818,"title":"hostname: support alpine(3.4)","user":{"login":"jbergstroem","id":176984,"avatar_url":"https://avatars.githubusercontent.com/u/176984?v=3","gravatar_id":"","url":"https://api.github.com/users/jbergstroem","html_url":"https://github.com/jbergstroem","followers_url":"https://api.github.com/users/jbergstroem/followers","following_url":"https://api.github.com/users/jbergstroem/following{/other_user}","gists_url":"https://api.github.com/users/jbergstroem/gists{/gist_id}","starred_url":"https://api.github.com/users/jbergstroem/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jbergstroem/subscriptions","organizations_url":"https://api.github.com/users/jbergstroem/orgs","repos_url":"https://api.github.com/users/jbergstroem/repos","events_url":"https://api.github.com/users/jbergstroem/events{/privacy}","received_events_url":"https://api.github.com/users/jbergstroem/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ansible/ansible-modules-core/labels/affects_2.2","name":"affects_2.2","color":"5319e7"},{"url":"https://api.github.com/repos/ansible/ansible-modules-core/labels/feature_idea","name":"feature_idea","color":"006b75"},{"url":"https://api.github.com/repos/ansible/ansible-modules-core/labels/waiting_on_maintainer","name":"waiting_on_maintainer","color":"d93f0b"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2016-09-13T18:59:59Z","updated_at":"2016-09-14T15:00:15Z","closed_at":null,"body":"\r\n##### ISSUE TYPE\r\n - Feature Idea\r\n\r\n##### COMPONENT NAME\r\nhostname\r\n\r\n##### ANSIBLE VERSION\r\n<!--- Paste verbatim output from “ansible --version” between quotes below -->\r\n```\r\nansible 2.2.0 (devel e326da28ff) last updated 2016/09/13 13:46:08 (GMT -300)\r\n  lib/ansible/modules/core: (detached HEAD ae6992bf8c) last updated 2016/09/13 13:47:28 (GMT -300)\r\n  lib/ansible/modules/extras: (detached HEAD afd0b23836) last updated 2016/09/13 13:47:28 (GMT -300)\r\n  config file = /Users/jbergstroem/Work/node/build/ansible/ansible.cfg\r\n  configured module search path = ['plugins/library']\r\n```\r\n\r\n##### CONFIGURATION\r\n\r\n\r\n##### OS / ENVIRONMENT\r\nN/A\r\n\r\n##### SUMMARY\r\nAnsible currently returns this if you try to use the hostname module on alpine:\r\n`fatal: [test-joyent-alpine34-x64-2]: FAILED! => {\"changed\": false, \"failed\": true, \"msg\": \"hostname module cannot be used on platform Linux (Alpine)\"}`\r\n\r\nSupporting it should be relatively straightforward seeing how it utilizes both `/etc/hostname` and `hostname` if busybox is installed. I can see the rationale for not supporting a lot of stuff on alpine but I think people that use it to a point where even busybox isn't installed wouldn't try and call hostname either.\r\n\r\n##### STEPS TO REPRODUCE\r\nJust call hostname\r\n\r\n\r\n##### EXPECTED RESULTS\r\nSetting the hostname\r\n\r\n##### ACTUAL RESULTS\r\n```\r\nfatal: [test-joyent-alpine34-x64-2]: FAILED! => {\"changed\": false, \"failed\": true, \"msg\": \"hostname module cannot be used on platform Linux (Alpine)\"}\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/comments/247041986","html_url":"https://github.com/ansible/ansible-modules-core/issues/4818#issuecomment-247041986","issue_url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/4818","id":247041986,"user":{"login":"hnakamur","id":19299,"avatar_url":"https://avatars.githubusercontent.com/u/19299?v=3","gravatar_id":"","url":"https://api.github.com/users/hnakamur","html_url":"https://github.com/hnakamur","followers_url":"https://api.github.com/users/hnakamur/followers","following_url":"https://api.github.com/users/hnakamur/following{/other_user}","gists_url":"https://api.github.com/users/hnakamur/gists{/gist_id}","starred_url":"https://api.github.com/users/hnakamur/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hnakamur/subscriptions","organizations_url":"https://api.github.com/users/hnakamur/orgs","repos_url":"https://api.github.com/users/hnakamur/repos","events_url":"https://api.github.com/users/hnakamur/events{/privacy}","received_events_url":"https://api.github.com/users/hnakamur/received_events","type":"User","site_admin":false},"created_at":"2016-09-14T15:00:15Z","updated_at":"2016-09-14T15:00:15Z","body":"@jbergstroem I created a pull request #4837. Could you test it?"}}
{"actor":{"display_login":"hnakamur"}}