{"action":"created","issue":{"url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/4502","repository_url":"https://api.github.com/repos/ansible/ansible-modules-core","labels_url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/4502/labels{/name}","comments_url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/4502/comments","events_url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/4502/events","html_url":"https://github.com/ansible/ansible-modules-core/issues/4502","id":172583646,"number":4502,"title":"Systemd module missing in Ubuntu Xenial PPA","user":{"login":"will-janz","id":6629321,"avatar_url":"https://avatars.githubusercontent.com/u/6629321?v=3","gravatar_id":"","url":"https://api.github.com/users/will-janz","html_url":"https://github.com/will-janz","followers_url":"https://api.github.com/users/will-janz/followers","following_url":"https://api.github.com/users/will-janz/following{/other_user}","gists_url":"https://api.github.com/users/will-janz/gists{/gist_id}","starred_url":"https://api.github.com/users/will-janz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/will-janz/subscriptions","organizations_url":"https://api.github.com/users/will-janz/orgs","repos_url":"https://api.github.com/users/will-janz/repos","events_url":"https://api.github.com/users/will-janz/events{/privacy}","received_events_url":"https://api.github.com/users/will-janz/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-08-23T00:09:40Z","updated_at":"2016-08-23T00:12:27Z","closed_at":"2016-08-23T00:12:27Z","body":"##### ISSUE TYPE\r\nBug Report\r\n\r\n##### COMPONENT NAME\r\nsystemd\r\n\r\n##### ANSIBLE VERSION\r\n<!--- Paste verbatim output from “ansible --version” between quotes below -->\r\n```\r\nansible 2.1.1.0\r\n  config file = /etc/ansible/ansible.cfg\r\n  configured module search path = Default w/o overrides\r\n```\r\n\r\n##### CONFIGURATION\r\nNo config changes\r\n\r\n##### OS / ENVIRONMENT\r\nLinux Mint 18 (Sarah) / Ubuntu 16.04 Xenial\r\n\r\n##### SUMMARY\r\nAttempting to use the systemd module in my playbook resulted in the \"no action detected in task\" error. After running `ansible localhost -m systemd` I was given \r\n```\r\nlocalhost | FAILED! => {\r\n    \"failed\": true, \r\n    \"msg\": \"The module systemd was not found in configured module paths. Additionally, core modules are missing. If this is a checkout, run 'git submodule update --init --recursive' to correct this problem.\"\r\n}\r\n```\r\nhowever I did not install this through git, I used the PPA. After searching for documentation and poking through the [xenial packages diff](https://launchpadlibrarian.net/275533180/ansible_2.1.0.0-1ppa~xenial_2.1.1.0-1ppa~xenial.diff.gz), I found no reference to the systemd module. I did find a comment about systemd in the service module, however the service module does not support the \"daemon_reload\" parameter. \r\n\r\nSince Ubuntu 16, systemd has been used in place of initd. Please include the systemd module with the Ubuntu package. Additionally, if it is reasonable, documentation on how to add additional modules to a package managed Ansible installation would be fantastic.\r\n\r\nThank you!\r\n\r\n##### STEPS TO REPRODUCE\r\n- Install according to [given instructions](http://docs.ansible.com/ansible/intro_installation.html#latest-releases-via-apt-ubuntu)\r\n- Attempt to use systemd module\r\n- Run `ansible localhost -m systemd`\r\n\r\nRelevant playbook tasks entry\r\n```\r\n- name: Confirm nginx works\r\n  systemd:\r\n    name: nginx\r\n    state: restarted\r\n    enabled: true\r\n```\r\n\r\n##### EXPECTED RESULTS\r\nThe playbook to run through and be told by a cow that everything went ok.\r\n\r\n##### ACTUAL RESULTS\r\nRan with -vvv\r\n```\r\nERROR! no action detected in task. This often indicates a misspelled module name, or incorrect module path.\r\n\r\nThe error appears to have been in '/home/will/git/ansible/tasks/config.yml': line 51, column 3, but may be elsewhere in the file depending on the exact syntax problem.\r\n\r\nThe offending line appears to be:\r\n\r\n\r\n- name: Confirm nginx works\r\n  ^ here\r\n\r\n\r\nThe error appears to have been in '/home/will/git/ansible/tasks/config.yml': line 51, column 3, but may be elsewhere on the file depending on the exact syntax problem.\r\n\r\nThe offending line appears to be:\r\n\r\n\r\n- name: Confirm nginx works\r\n  ^ here\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/comments/241589568","html_url":"https://github.com/ansible/ansible-modules-core/issues/4502#issuecomment-241589568","issue_url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/4502","id":241589568,"user":{"login":"sivel","id":39340,"avatar_url":"https://avatars.githubusercontent.com/u/39340?v=3","gravatar_id":"","url":"https://api.github.com/users/sivel","html_url":"https://github.com/sivel","followers_url":"https://api.github.com/users/sivel/followers","following_url":"https://api.github.com/users/sivel/following{/other_user}","gists_url":"https://api.github.com/users/sivel/gists{/gist_id}","starred_url":"https://api.github.com/users/sivel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sivel/subscriptions","organizations_url":"https://api.github.com/users/sivel/orgs","repos_url":"https://api.github.com/users/sivel/repos","events_url":"https://api.github.com/users/sivel/events{/privacy}","received_events_url":"https://api.github.com/users/sivel/received_events","type":"User","site_admin":false},"created_at":"2016-08-23T00:12:26Z","updated_at":"2016-08-23T00:12:26Z","body":"The `systemd` module is listed as being added in Ansible 2.2 which has not been released yet.  Per your version output, you are still running version 2.1.1.0."}}
{"actor":{"display_login":"sivel"}}