{"action":"created","issue":{"url":"https://api.github.com/repos/ansible/ansible/issues/14270","repository_url":"https://api.github.com/repos/ansible/ansible","labels_url":"https://api.github.com/repos/ansible/ansible/issues/14270/labels{/name}","comments_url":"https://api.github.com/repos/ansible/ansible/issues/14270/comments","events_url":"https://api.github.com/repos/ansible/ansible/issues/14270/events","html_url":"https://github.com/ansible/ansible/issues/14270","id":130762955,"number":14270,"title":"Add support for blocks in role handlers","user":{"login":"kustodian","id":1949229,"avatar_url":"https://avatars.githubusercontent.com/u/1949229?v=3","gravatar_id":"","url":"https://api.github.com/users/kustodian","html_url":"https://github.com/kustodian","followers_url":"https://api.github.com/users/kustodian/followers","following_url":"https://api.github.com/users/kustodian/following{/other_user}","gists_url":"https://api.github.com/users/kustodian/gists{/gist_id}","starred_url":"https://api.github.com/users/kustodian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kustodian/subscriptions","organizations_url":"https://api.github.com/users/kustodian/orgs","repos_url":"https://api.github.com/users/kustodian/repos","events_url":"https://api.github.com/users/kustodian/events{/privacy}","received_events_url":"https://api.github.com/users/kustodian/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ansible/ansible/labels/feature_idea","name":"feature_idea","color":"006b75"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2016-02-02T17:57:10Z","updated_at":"2016-05-26T19:48:50Z","closed_at":null,"body":"Currently it's not possible to define multiple tasks for one handler. It is possible to call multiple handlers, or to notify the next handler from the first one, but all of these are more workarounds, than simple solutions. Since Ansbile 2.0 added support for blocks, maybe we could add this support to handlers, so we could write something like this:\r\n\r\n```\r\n- name: reload nginx\r\n  block:\r\n    - command: nginx -t\r\n    - service: name=nginx state=reloaded\r\n```\r\n\r\nI'm not sure if this would be the correct syntax, but would be really nice to have."},"comment":{"url":"https://api.github.com/repos/ansible/ansible/issues/comments/221975040","html_url":"https://github.com/ansible/ansible/issues/14270#issuecomment-221975040","issue_url":"https://api.github.com/repos/ansible/ansible/issues/14270","id":221975040,"user":{"login":"mrcybermac","id":6118944,"avatar_url":"https://avatars.githubusercontent.com/u/6118944?v=3","gravatar_id":"","url":"https://api.github.com/users/mrcybermac","html_url":"https://github.com/mrcybermac","followers_url":"https://api.github.com/users/mrcybermac/followers","following_url":"https://api.github.com/users/mrcybermac/following{/other_user}","gists_url":"https://api.github.com/users/mrcybermac/gists{/gist_id}","starred_url":"https://api.github.com/users/mrcybermac/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mrcybermac/subscriptions","organizations_url":"https://api.github.com/users/mrcybermac/orgs","repos_url":"https://api.github.com/users/mrcybermac/repos","events_url":"https://api.github.com/users/mrcybermac/events{/privacy}","received_events_url":"https://api.github.com/users/mrcybermac/received_events","type":"User","site_admin":false},"created_at":"2016-05-26T19:48:50Z","updated_at":"2016-05-26T19:48:50Z","body":"+1  Allowing handlers to be named blocks instead of just single tasks would be useful"}}
{"actor":{"display_login":"mrcybermac"}}