{"action":"created","issue":{"url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/3137","repository_url":"https://api.github.com/repos/ansible/ansible-modules-core","labels_url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/3137/labels{/name}","comments_url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/3137/comments","events_url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/3137/events","html_url":"https://github.com/ansible/ansible-modules-core/issues/3137","id":137138697,"number":3137,"title":"Opensuse version <= 11 wrong hostname strategy","user":{"login":"jb11211","id":3419800,"avatar_url":"https://avatars.githubusercontent.com/u/3419800?v=3","gravatar_id":"","url":"https://api.github.com/users/jb11211","html_url":"https://github.com/jb11211","followers_url":"https://api.github.com/users/jb11211/followers","following_url":"https://api.github.com/users/jb11211/following{/other_user}","gists_url":"https://api.github.com/users/jb11211/gists{/gist_id}","starred_url":"https://api.github.com/users/jb11211/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jb11211/subscriptions","organizations_url":"https://api.github.com/users/jb11211/orgs","repos_url":"https://api.github.com/users/jb11211/repos","events_url":"https://api.github.com/users/jb11211/events{/privacy}","received_events_url":"https://api.github.com/users/jb11211/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ansible/ansible-modules-core/labels/affects_2.0","name":"affects_2.0","color":"5319e7"},{"url":"https://api.github.com/repos/ansible/ansible-modules-core/labels/bug_report","name":"bug_report","color":"fbca04"},{"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":9,"created_at":"2016-02-29T03:20:54Z","updated_at":"2016-10-22T09:01:43Z","closed_at":null,"body":"##### Issue Type:\r\n\r\n - Bug Report\r\n\r\n##### Plugin Name:\r\n\r\nhostname module\r\n\r\n##### Ansible Version:\r\n\r\n```\r\n$ ansible --version\r\nansible 2.0.1.0\r\n  config file = /Users/brookerj/repos/bbot/ansible.cfg\r\n  configured module search path = Default w/o overrides\r\n\r\n```\r\n\r\n##### Ansible Configuration:\r\n\r\n$ cat /Users/brookerj/repos/bbot/ansible.cfg\r\n\r\n[defaults]\r\n\r\ndeprecation_warnings = False\r\n\r\n##### Environment:\r\n\r\nrunning from Mac, managing an Opensuse 11.1 32 bit instance\r\n\r\n##### Summary:\r\n\r\nThe core modules hostname setting function:\r\nhttps://github.com/ansible/ansible-modules-core/blob/09e2457eb0e811ac293065dd77cd31597ceb2da7/system/hostname.py#L467-L472\r\n\r\nThe code referenced above incorrectly assumes that all versions of opensuse run systemd. in fact only versions 12 or later do. with the previous versions using the old sysinit v. see here for details of the change:\r\nhttps://www.suse.com/docrep/documents/huz0a6bf9a/systemd_in_suse_linux_enterprise_12_white_paper.pdf\r\n\r\n\r\n##### Steps To Reproduce:\r\ntry to set the hostname on an opensuse host.\r\n\r\n\r\n##### Expected Results:\r\n\r\nHostname to be set properly\r\n\r\n##### Actual Results:\r\n\r\n```\r\nfatal: [Opensuse_11_32]: FAILED! => {\"changed\": false, \"cmd\": \"hostnamectl --transient set-hostname Opensles_11_32\", \"failed\": true, \"msg\": \"[Errno 2] No such file or directory\", \"rc\": 2}\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/comments/255516422","html_url":"https://github.com/ansible/ansible-modules-core/issues/3137#issuecomment-255516422","issue_url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/3137","id":255516422,"user":{"login":"ansibot","id":6585283,"avatar_url":"https://avatars.githubusercontent.com/u/6585283?v=3","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":"2016-10-22T09:01:43Z","updated_at":"2016-10-22T09:01:43Z","body":"@alikins, @saito-hideki, ping. This issue is still waiting on your response.\n[click here for bot help](https://github.com/ansible/ansibullbot/blob/master/ISSUE_HELP.md)\n<!--- boilerplate: issue_renotify_maintainer --->"}}
{"actor":{"display_login":"ansibot"}}