{"action":"opened","number":17309,"pull_request":{"url":"https://api.github.com/repos/ansible/ansible/pulls/17309","id":83273595,"html_url":"https://github.com/ansible/ansible/pull/17309","diff_url":"https://github.com/ansible/ansible/pull/17309.diff","patch_url":"https://github.com/ansible/ansible/pull/17309.patch","issue_url":"https://api.github.com/repos/ansible/ansible/issues/17309","number":17309,"state":"open","locked":false,"title":"First release of the callback selective.py","user":{"login":"dbarrosop","id":6246622,"avatar_url":"https://avatars.githubusercontent.com/u/6246622?v=3","gravatar_id":"","url":"https://api.github.com/users/dbarrosop","html_url":"https://github.com/dbarrosop","followers_url":"https://api.github.com/users/dbarrosop/followers","following_url":"https://api.github.com/users/dbarrosop/following{/other_user}","gists_url":"https://api.github.com/users/dbarrosop/gists{/gist_id}","starred_url":"https://api.github.com/users/dbarrosop/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dbarrosop/subscriptions","organizations_url":"https://api.github.com/users/dbarrosop/orgs","repos_url":"https://api.github.com/users/dbarrosop/repos","events_url":"https://api.github.com/users/dbarrosop/events{/privacy}","received_events_url":"https://api.github.com/users/dbarrosop/received_events","type":"User","site_admin":false},"body":"##### ISSUE TYPE\r\n - New callback\r\n\r\n##### COMPONENT NAME\r\nselective.py\r\n\r\n##### ANSIBLE VERSION\r\n<!--- Paste verbatim output from “ansible --version” between quotes below -->\r\n```\r\n$ ansible --version\r\nansible 2.1.0.0\r\n  config file = /Users/dbarroso/workspace/ansibly/ansible.cfg\r\n  configured module search path = ['library']\r\n```\r\n\r\n##### SUMMARY\r\n\r\nThis is a new callback that let's you tag the tasks you want to show on the screen. This is useful when you have a playbook with hundreds of tasks and you don't want to clutter the output with tasks that provide no operational value like \"creating folder to hold configuration files\" or \"setting facts\" or \"dropping temporary files\" that you will assemble later on, etc.\r\n\r\nBy default, tasks are replaced on screen by a dot. Tasks that fail are always printed on screen. If you want to show a particular task you have to tag it with the label \"print_action\".\r\n\r\nFor example:\r\n\r\nThe playbook:\r\n\r\n```\r\n---\r\n- name: Test playbook\r\n  hosts: all\r\n\r\n  tasks:\r\n    - debug: msg=\"This will not be printed\"\r\n    - debug: msg=\"This will not be printed\"\r\n    - debug: msg=\"This will not be printed\"\r\n    - debug: msg=\"This will not be printed\"\r\n    - debug: msg=\"This will not be printed\"\r\n    - debug: msg=\"But this will\"\r\n      tags: [print_action]\r\n    - assert: that=False\r\n```\r\n\r\nWill yield the following output:\r\n\r\n```\r\n$ ansible-playbook test.yml --limit \"edge-lab*\"\r\n............\r\n# debug *******************************************************************************************************************\r\n  * edge-lab-100002         - changed=False -- But this will -----------------------------------\r\n  * edge-lab-100001         - changed=False -- But this will -----------------------------------\r\n# assert ******************************************************************************************************************\r\n  * edge-lab-100002         - FAILED!!! --  ----------------------------------------------------\r\n  * edge-lab-100001         - FAILED!!! --  ----------------------------------------------------\r\n\r\n# STATS *******************************************************************************************************************\r\nedge-lab-100001    : ok=7   \tchanged=0      \tfailed=1       \tunreachable=0\r\nedge-lab-100002    : ok=7   \tchanged=0      \tfailed=1       \tunreachable=0\r\n```","created_at":"2016-08-30T13:43:16Z","updated_at":"2016-08-30T13:43:16Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/ansible/ansible/pulls/17309/commits","review_comments_url":"https://api.github.com/repos/ansible/ansible/pulls/17309/comments","review_comment_url":"https://api.github.com/repos/ansible/ansible/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ansible/ansible/issues/17309/comments","statuses_url":"https://api.github.com/repos/ansible/ansible/statuses/2e93722d2ab61647e82b03944af3fdac2f43c0b8","head":{"label":"dbarrosop:devel","ref":"devel","sha":"2e93722d2ab61647e82b03944af3fdac2f43c0b8","user":{"login":"dbarrosop","id":6246622,"avatar_url":"https://avatars.githubusercontent.com/u/6246622?v=3","gravatar_id":"","url":"https://api.github.com/users/dbarrosop","html_url":"https://github.com/dbarrosop","followers_url":"https://api.github.com/users/dbarrosop/followers","following_url":"https://api.github.com/users/dbarrosop/following{/other_user}","gists_url":"https://api.github.com/users/dbarrosop/gists{/gist_id}","starred_url":"https://api.github.com/users/dbarrosop/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dbarrosop/subscriptions","organizations_url":"https://api.github.com/users/dbarrosop/orgs","repos_url":"https://api.github.com/users/dbarrosop/repos","events_url":"https://api.github.com/users/dbarrosop/events{/privacy}","received_events_url":"https://api.github.com/users/dbarrosop/received_events","type":"User","site_admin":false},"repo":{"id":53146043,"name":"ansible","full_name":"dbarrosop/ansible","owner":{"login":"dbarrosop","id":6246622,"avatar_url":"https://avatars.githubusercontent.com/u/6246622?v=3","gravatar_id":"","url":"https://api.github.com/users/dbarrosop","html_url":"https://github.com/dbarrosop","followers_url":"https://api.github.com/users/dbarrosop/followers","following_url":"https://api.github.com/users/dbarrosop/following{/other_user}","gists_url":"https://api.github.com/users/dbarrosop/gists{/gist_id}","starred_url":"https://api.github.com/users/dbarrosop/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dbarrosop/subscriptions","organizations_url":"https://api.github.com/users/dbarrosop/orgs","repos_url":"https://api.github.com/users/dbarrosop/repos","events_url":"https://api.github.com/users/dbarrosop/events{/privacy}","received_events_url":"https://api.github.com/users/dbarrosop/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/dbarrosop/ansible","description":"Ansible is a radically simple IT automation platform that makes your applications and systems easier to deploy. Avoid writing scripts or custom code to deploy and update your applications— automate in a language that approaches plain English, using SSH, with no agents to install on remote systems.","fork":true,"url":"https://api.github.com/repos/dbarrosop/ansible","forks_url":"https://api.github.com/repos/dbarrosop/ansible/forks","keys_url":"https://api.github.com/repos/dbarrosop/ansible/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dbarrosop/ansible/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dbarrosop/ansible/teams","hooks_url":"https://api.github.com/repos/dbarrosop/ansible/hooks","issue_events_url":"https://api.github.com/repos/dbarrosop/ansible/issues/events{/number}","events_url":"https://api.github.com/repos/dbarrosop/ansible/events","assignees_url":"https://api.github.com/repos/dbarrosop/ansible/assignees{/user}","branches_url":"https://api.github.com/repos/dbarrosop/ansible/branches{/branch}","tags_url":"https://api.github.com/repos/dbarrosop/ansible/tags","blobs_url":"https://api.github.com/repos/dbarrosop/ansible/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dbarrosop/ansible/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dbarrosop/ansible/git/refs{/sha}","trees_url":"https://api.github.com/repos/dbarrosop/ansible/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dbarrosop/ansible/statuses/{sha}","languages_url":"https://api.github.com/repos/dbarrosop/ansible/languages","stargazers_url":"https://api.github.com/repos/dbarrosop/ansible/stargazers","contributors_url":"https://api.github.com/repos/dbarrosop/ansible/contributors","subscribers_url":"https://api.github.com/repos/dbarrosop/ansible/subscribers","subscription_url":"https://api.github.com/repos/dbarrosop/ansible/subscription","commits_url":"https://api.github.com/repos/dbarrosop/ansible/commits{/sha}","git_commits_url":"https://api.github.com/repos/dbarrosop/ansible/git/commits{/sha}","comments_url":"https://api.github.com/repos/dbarrosop/ansible/comments{/number}","issue_comment_url":"https://api.github.com/repos/dbarrosop/ansible/issues/comments{/number}","contents_url":"https://api.github.com/repos/dbarrosop/ansible/contents/{+path}","compare_url":"https://api.github.com/repos/dbarrosop/ansible/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dbarrosop/ansible/merges","archive_url":"https://api.github.com/repos/dbarrosop/ansible/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dbarrosop/ansible/downloads","issues_url":"https://api.github.com/repos/dbarrosop/ansible/issues{/number}","pulls_url":"https://api.github.com/repos/dbarrosop/ansible/pulls{/number}","milestones_url":"https://api.github.com/repos/dbarrosop/ansible/milestones{/number}","notifications_url":"https://api.github.com/repos/dbarrosop/ansible/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dbarrosop/ansible/labels{/name}","releases_url":"https://api.github.com/repos/dbarrosop/ansible/releases{/id}","deployments_url":"https://api.github.com/repos/dbarrosop/ansible/deployments","created_at":"2016-03-04T15:44:47Z","updated_at":"2016-07-01T17:38:08Z","pushed_at":"2016-08-30T13:31:20Z","git_url":"git://github.com/dbarrosop/ansible.git","ssh_url":"git@github.com:dbarrosop/ansible.git","clone_url":"https://github.com/dbarrosop/ansible.git","svn_url":"https://github.com/dbarrosop/ansible","homepage":"http://ansible.com/","size":39269,"stargazers_count":1,"watchers_count":1,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":1,"default_branch":"devel"}},"base":{"label":"ansible:devel","ref":"devel","sha":"9c311b6b1316e14fc140027c5015525279d284b3","user":{"login":"ansible","id":1507452,"avatar_url":"https://avatars.githubusercontent.com/u/1507452?v=3","gravatar_id":"","url":"https://api.github.com/users/ansible","html_url":"https://github.com/ansible","followers_url":"https://api.github.com/users/ansible/followers","following_url":"https://api.github.com/users/ansible/following{/other_user}","gists_url":"https://api.github.com/users/ansible/gists{/gist_id}","starred_url":"https://api.github.com/users/ansible/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ansible/subscriptions","organizations_url":"https://api.github.com/users/ansible/orgs","repos_url":"https://api.github.com/users/ansible/repos","events_url":"https://api.github.com/users/ansible/events{/privacy}","received_events_url":"https://api.github.com/users/ansible/received_events","type":"Organization","site_admin":false},"repo":{"id":3638964,"name":"ansible","full_name":"ansible/ansible","owner":{"login":"ansible","id":1507452,"avatar_url":"https://avatars.githubusercontent.com/u/1507452?v=3","gravatar_id":"","url":"https://api.github.com/users/ansible","html_url":"https://github.com/ansible","followers_url":"https://api.github.com/users/ansible/followers","following_url":"https://api.github.com/users/ansible/following{/other_user}","gists_url":"https://api.github.com/users/ansible/gists{/gist_id}","starred_url":"https://api.github.com/users/ansible/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ansible/subscriptions","organizations_url":"https://api.github.com/users/ansible/orgs","repos_url":"https://api.github.com/users/ansible/repos","events_url":"https://api.github.com/users/ansible/events{/privacy}","received_events_url":"https://api.github.com/users/ansible/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ansible/ansible","description":"Ansible is a radically simple IT automation platform that makes your applications and systems easier to deploy. Avoid writing scripts or custom code to deploy and update your applications— automate in a language that approaches plain English, using SSH, with no agents to install on remote systems.","fork":false,"url":"https://api.github.com/repos/ansible/ansible","forks_url":"https://api.github.com/repos/ansible/ansible/forks","keys_url":"https://api.github.com/repos/ansible/ansible/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ansible/ansible/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ansible/ansible/teams","hooks_url":"https://api.github.com/repos/ansible/ansible/hooks","issue_events_url":"https://api.github.com/repos/ansible/ansible/issues/events{/number}","events_url":"https://api.github.com/repos/ansible/ansible/events","assignees_url":"https://api.github.com/repos/ansible/ansible/assignees{/user}","branches_url":"https://api.github.com/repos/ansible/ansible/branches{/branch}","tags_url":"https://api.github.com/repos/ansible/ansible/tags","blobs_url":"https://api.github.com/repos/ansible/ansible/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ansible/ansible/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ansible/ansible/git/refs{/sha}","trees_url":"https://api.github.com/repos/ansible/ansible/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ansible/ansible/statuses/{sha}","languages_url":"https://api.github.com/repos/ansible/ansible/languages","stargazers_url":"https://api.github.com/repos/ansible/ansible/stargazers","contributors_url":"https://api.github.com/repos/ansible/ansible/contributors","subscribers_url":"https://api.github.com/repos/ansible/ansible/subscribers","subscription_url":"https://api.github.com/repos/ansible/ansible/subscription","commits_url":"https://api.github.com/repos/ansible/ansible/commits{/sha}","git_commits_url":"https://api.github.com/repos/ansible/ansible/git/commits{/sha}","comments_url":"https://api.github.com/repos/ansible/ansible/comments{/number}","issue_comment_url":"https://api.github.com/repos/ansible/ansible/issues/comments{/number}","contents_url":"https://api.github.com/repos/ansible/ansible/contents/{+path}","compare_url":"https://api.github.com/repos/ansible/ansible/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ansible/ansible/merges","archive_url":"https://api.github.com/repos/ansible/ansible/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ansible/ansible/downloads","issues_url":"https://api.github.com/repos/ansible/ansible/issues{/number}","pulls_url":"https://api.github.com/repos/ansible/ansible/pulls{/number}","milestones_url":"https://api.github.com/repos/ansible/ansible/milestones{/number}","notifications_url":"https://api.github.com/repos/ansible/ansible/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ansible/ansible/labels{/name}","releases_url":"https://api.github.com/repos/ansible/ansible/releases{/id}","deployments_url":"https://api.github.com/repos/ansible/ansible/deployments","created_at":"2012-03-06T14:58:02Z","updated_at":"2016-08-30T12:09:18Z","pushed_at":"2016-08-30T13:28:44Z","git_url":"git://github.com/ansible/ansible.git","ssh_url":"git@github.com:ansible/ansible.git","clone_url":"https://github.com/ansible/ansible.git","svn_url":"https://github.com/ansible/ansible","homepage":"http://ansible.com/","size":62607,"stargazers_count":18554,"watchers_count":18554,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":5620,"mirror_url":null,"open_issues_count":1568,"forks":5620,"open_issues":1568,"watchers":18554,"default_branch":"devel"}},"_links":{"self":{"href":"https://api.github.com/repos/ansible/ansible/pulls/17309"},"html":{"href":"https://github.com/ansible/ansible/pull/17309"},"issue":{"href":"https://api.github.com/repos/ansible/ansible/issues/17309"},"comments":{"href":"https://api.github.com/repos/ansible/ansible/issues/17309/comments"},"review_comments":{"href":"https://api.github.com/repos/ansible/ansible/pulls/17309/comments"},"review_comment":{"href":"https://api.github.com/repos/ansible/ansible/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ansible/ansible/pulls/17309/commits"},"statuses":{"href":"https://api.github.com/repos/ansible/ansible/statuses/2e93722d2ab61647e82b03944af3fdac2f43c0b8"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":225,"deletions":0,"changed_files":1}}
{"actor":{"display_login":"dbarrosop"}}