{"action":"created","issue":{"url":"https://api.github.com/repos/ansible/ansible/issues/5841","labels_url":"https://api.github.com/repos/ansible/ansible/issues/5841/labels{/name}","comments_url":"https://api.github.com/repos/ansible/ansible/issues/5841/comments","events_url":"https://api.github.com/repos/ansible/ansible/issues/5841/events","html_url":"https://github.com/ansible/ansible/issues/5841","id":26710250,"number":5841,"title":"Allow async command to work with lookup plugins","user":{"login":"nathanhruby","id":812347,"avatar_url":"https://avatars.githubusercontent.com/u/812347?v=3","gravatar_id":"","url":"https://api.github.com/users/nathanhruby","html_url":"https://github.com/nathanhruby","followers_url":"https://api.github.com/users/nathanhruby/followers","following_url":"https://api.github.com/users/nathanhruby/following{/other_user}","gists_url":"https://api.github.com/users/nathanhruby/gists{/gist_id}","starred_url":"https://api.github.com/users/nathanhruby/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nathanhruby/subscriptions","organizations_url":"https://api.github.com/users/nathanhruby/orgs","repos_url":"https://api.github.com/users/nathanhruby/repos","events_url":"https://api.github.com/users/nathanhruby/events{/privacy}","received_events_url":"https://api.github.com/users/nathanhruby/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ansible/ansible/labels/feature_idea","name":"feature_idea","color":"006b75"},{"url":"https://api.github.com/repos/ansible/ansible/labels/P5","name":"P5","color":"bfdadc"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2014-01-31T19:48:02Z","updated_at":"2015-03-16T15:13:19Z","closed_at":null,"body":"Using ansible 1.4.3 or later,  I would like to iterate over a hash of items using with_items and run a action (git clone, pip install, etc..) with each of those items using async.  This is so I don't need to worry about ssh timing out during some of the commands, which can take upwards of 30 minutes the first run.\r\n\r\nPresently this is not allowed and ansible errors with:\r\n```\r\nfatal: [default] => lookup plugins (with_*) cannot be used with async tasks\r\n```\r\nIt seems as if there are two action items:\r\n - The documentation should provide a warning/caveat about this on the playbook_async page.\r\n - async should work with lookup / with_*"},"comment":{"url":"https://api.github.com/repos/ansible/ansible/issues/comments/81726666","html_url":"https://github.com/ansible/ansible/issues/5841#issuecomment-81726666","issue_url":"https://api.github.com/repos/ansible/ansible/issues/5841","id":81726666,"user":{"login":"mmahut","id":104795,"avatar_url":"https://avatars.githubusercontent.com/u/104795?v=3","gravatar_id":"","url":"https://api.github.com/users/mmahut","html_url":"https://github.com/mmahut","followers_url":"https://api.github.com/users/mmahut/followers","following_url":"https://api.github.com/users/mmahut/following{/other_user}","gists_url":"https://api.github.com/users/mmahut/gists{/gist_id}","starred_url":"https://api.github.com/users/mmahut/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mmahut/subscriptions","organizations_url":"https://api.github.com/users/mmahut/orgs","repos_url":"https://api.github.com/users/mmahut/repos","events_url":"https://api.github.com/users/mmahut/events{/privacy}","received_events_url":"https://api.github.com/users/mmahut/received_events","type":"User","site_admin":false},"created_at":"2015-03-16T15:13:19Z","updated_at":"2015-03-16T15:13:19Z","body":"Would love to see this too."}}