{"action":"created","issue":{"url":"https://api.github.com/repos/willthames/ansible-lint/issues/165","repository_url":"https://api.github.com/repos/willthames/ansible-lint","labels_url":"https://api.github.com/repos/willthames/ansible-lint/issues/165/labels{/name}","comments_url":"https://api.github.com/repos/willthames/ansible-lint/issues/165/comments","events_url":"https://api.github.com/repos/willthames/ansible-lint/issues/165/events","html_url":"https://github.com/willthames/ansible-lint/issues/165","id":162408668,"number":165,"title":"[ANSIBLE0012] Handlers should be allows to run shell/command entries without when","user":{"login":"robinro","id":107032,"avatar_url":"https://avatars.githubusercontent.com/u/107032?v=3","gravatar_id":"","url":"https://api.github.com/users/robinro","html_url":"https://github.com/robinro","followers_url":"https://api.github.com/users/robinro/followers","following_url":"https://api.github.com/users/robinro/following{/other_user}","gists_url":"https://api.github.com/users/robinro/gists{/gist_id}","starred_url":"https://api.github.com/users/robinro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/robinro/subscriptions","organizations_url":"https://api.github.com/users/robinro/orgs","repos_url":"https://api.github.com/users/robinro/repos","events_url":"https://api.github.com/users/robinro/events{/privacy}","received_events_url":"https://api.github.com/users/robinro/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-06-27T09:24:42Z","updated_at":"2016-06-27T11:37:47Z","closed_at":null,"body":"# Issue Type\r\n- Bug report\r\n\r\n# Ansible and Ansible Lint details\r\n\r\nansible --version: 2.1\r\nansible-lint --version: 3.0.1\r\n\r\n- ansible installation method: source\r\n- ansible-lint installation method: pip\r\n\r\n# Desired Behaviour\r\n\r\nANSIBLE0012 checks for usage of `shell` or `command` without `when`, `changed_when`, ...\r\nWhile this represent good practice for tasks, it is not needed for handlers, which have an implicit `when: original_task|changed`.\r\n\r\nThus handlers should be excluded from this check.\r\n\r\n# Actual Behaviour (Bug report only)\r\n\r\n[ANSIBLE0012] Commands should not change things if nothing needs doing\r\n.../roles/foo/handlers/main.yml:3\r\nTask/Handler: run shell command"},"comment":{"url":"https://api.github.com/repos/willthames/ansible-lint/issues/comments/228722038","html_url":"https://github.com/willthames/ansible-lint/issues/165#issuecomment-228722038","issue_url":"https://api.github.com/repos/willthames/ansible-lint/issues/165","id":228722038,"user":{"login":"willthames","id":391807,"avatar_url":"https://avatars.githubusercontent.com/u/391807?v=3","gravatar_id":"","url":"https://api.github.com/users/willthames","html_url":"https://github.com/willthames","followers_url":"https://api.github.com/users/willthames/followers","following_url":"https://api.github.com/users/willthames/following{/other_user}","gists_url":"https://api.github.com/users/willthames/gists{/gist_id}","starred_url":"https://api.github.com/users/willthames/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/willthames/subscriptions","organizations_url":"https://api.github.com/users/willthames/orgs","repos_url":"https://api.github.com/users/willthames/repos","events_url":"https://api.github.com/users/willthames/events{/privacy}","received_events_url":"https://api.github.com/users/willthames/received_events","type":"User","site_admin":false},"created_at":"2016-06-27T11:37:47Z","updated_at":"2016-06-27T11:37:47Z","body":"Yes, you're quite right - expect a patch in the next day or so."}}
{"actor":{"display_login":"willthames"}}