{"action":"closed","issue":{"url":"https://api.github.com/repos/ansible/ansible/issues/39556","repository_url":"https://api.github.com/repos/ansible/ansible","labels_url":"https://api.github.com/repos/ansible/ansible/issues/39556/labels{/name}","comments_url":"https://api.github.com/repos/ansible/ansible/issues/39556/comments","events_url":"https://api.github.com/repos/ansible/ansible/issues/39556/events","html_url":"https://github.com/ansible/ansible/issues/39556","id":319197683,"node_id":"MDU6SXNzdWUzMTkxOTc2ODM=","number":39556,"title":"Expose to the playbook the history of run roles","user":{"login":"tterranigma","id":11805218,"node_id":"MDQ6VXNlcjExODA1MjE4","avatar_url":"https://avatars2.githubusercontent.com/u/11805218?v=4","gravatar_id":"","url":"https://api.github.com/users/tterranigma","html_url":"https://github.com/tterranigma","followers_url":"https://api.github.com/users/tterranigma/followers","following_url":"https://api.github.com/users/tterranigma/following{/other_user}","gists_url":"https://api.github.com/users/tterranigma/gists{/gist_id}","starred_url":"https://api.github.com/users/tterranigma/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tterranigma/subscriptions","organizations_url":"https://api.github.com/users/tterranigma/orgs","repos_url":"https://api.github.com/users/tterranigma/repos","events_url":"https://api.github.com/users/tterranigma/events{/privacy}","received_events_url":"https://api.github.com/users/tterranigma/received_events","type":"User","site_admin":false},"labels":[{"id":835286067,"node_id":"MDU6TGFiZWw4MzUyODYwNjc=","url":"https://api.github.com/repos/ansible/ansible/labels/affects_2.6","name":"affects_2.6","color":"ededed","default":false},{"id":852590921,"node_id":"MDU6TGFiZWw4NTI1OTA5MjE=","url":"https://api.github.com/repos/ansible/ansible/labels/feature","name":"feature","color":"006b75","default":false},{"id":54811101,"node_id":"MDU6TGFiZWw1NDgxMTEwMQ==","url":"https://api.github.com/repos/ansible/ansible/labels/needs_info","name":"needs_info","color":"eb6420","default":false},{"id":572345061,"node_id":"MDU6TGFiZWw1NzIzNDUwNjE=","url":"https://api.github.com/repos/ansible/ansible/labels/needs_template","name":"needs_template","color":"f9d0c4","default":false},{"id":636352796,"node_id":"MDU6TGFiZWw2MzYzNTI3OTY=","url":"https://api.github.com/repos/ansible/ansible/labels/support:core","name":"support:core","color":"ededed","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":9,"created_at":"2018-05-01T13:29:15Z","updated_at":"2018-09-21T14:27:55Z","closed_at":"2018-09-21T14:27:55Z","author_association":"CONTRIBUTOR","body":"<!---\r\nVerify first that your issue/request is not already reported on GitHub.\r\nTHIS FORM WILL BE READ BY A MACHINE, COMPLETE ALL SECTIONS AS DESCRIBED.\r\nAlso test if the latest release, and devel branch are affected too.\r\nALWAYS add information AFTER (OUTSIDE) these html comments.\r\nOtherwise it may end up being automatically closed by our bot. -->\r\n\r\n##### ISSUE TYPE\r\n<!--- Pick one below and delete the rest -->\r\n - Feature Idea\r\n\r\n##### SUMMARY\r\nNow that we have `import_role` and `include_role` which can be used with conditionals, I was wondering if there is a way to access a list of the roles that have run in the current playbook. \r\n\r\nA long playbook could be provided with many `import_role` statements and a subset of them could be chosen based on conditionals (eg os_family, cli provided variables, etc). Having the list of already executed roles would allow execution scenarios that role dependencies alone cannot provide. Also, at the end of the playbook, some cleanup or other task might need to know what roles have previously run. \r\n\r\nIs this list available somehow now? "}}
{"actor":{"display_login":"webknjaz"}}