{"action":"closed","issue":{"url":"https://api.github.com/repos/ansible/ansible/issues/12736","labels_url":"https://api.github.com/repos/ansible/ansible/issues/12736/labels{/name}","comments_url":"https://api.github.com/repos/ansible/ansible/issues/12736/comments","events_url":"https://api.github.com/repos/ansible/ansible/issues/12736/events","html_url":"https://github.com/ansible/ansible/issues/12736","id":111250033,"number":12736,"title":"[v2] failing apt task with_items in a include with_items","user":{"login":"basz","id":143068,"avatar_url":"https://avatars.githubusercontent.com/u/143068?v=3","gravatar_id":"","url":"https://api.github.com/users/basz","html_url":"https://github.com/basz","followers_url":"https://api.github.com/users/basz/followers","following_url":"https://api.github.com/users/basz/following{/other_user}","gists_url":"https://api.github.com/users/basz/gists{/gist_id}","starred_url":"https://api.github.com/users/basz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/basz/subscriptions","organizations_url":"https://api.github.com/users/basz/orgs","repos_url":"https://api.github.com/users/basz/repos","events_url":"https://api.github.com/users/basz/events{/privacy}","received_events_url":"https://api.github.com/users/basz/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ansible/ansible/labels/bug_report","name":"bug_report","color":"fbca04"},{"url":"https://api.github.com/repos/ansible/ansible/labels/P3","name":"P3","color":"fef2c0"},{"url":"https://api.github.com/repos/ansible/ansible/labels/pending_closure","name":"pending_closure","color":"e11d21"}],"state":"closed","locked":false,"assignee":{"login":"abadger","id":209242,"avatar_url":"https://avatars.githubusercontent.com/u/209242?v=3","gravatar_id":"","url":"https://api.github.com/users/abadger","html_url":"https://github.com/abadger","followers_url":"https://api.github.com/users/abadger/followers","following_url":"https://api.github.com/users/abadger/following{/other_user}","gists_url":"https://api.github.com/users/abadger/gists{/gist_id}","starred_url":"https://api.github.com/users/abadger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/abadger/subscriptions","organizations_url":"https://api.github.com/users/abadger/orgs","repos_url":"https://api.github.com/users/abadger/repos","events_url":"https://api.github.com/users/abadger/events{/privacy}","received_events_url":"https://api.github.com/users/abadger/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/ansible/ansible/milestones/5","html_url":"https://github.com/ansible/ansible/milestones/v2","labels_url":"https://api.github.com/repos/ansible/ansible/milestones/5/labels","id":975800,"number":5,"title":"v2","description":null,"creator":{"login":"bcoca","id":836171,"avatar_url":"https://avatars.githubusercontent.com/u/836171?v=3","gravatar_id":"","url":"https://api.github.com/users/bcoca","html_url":"https://github.com/bcoca","followers_url":"https://api.github.com/users/bcoca/followers","following_url":"https://api.github.com/users/bcoca/following{/other_user}","gists_url":"https://api.github.com/users/bcoca/gists{/gist_id}","starred_url":"https://api.github.com/users/bcoca/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bcoca/subscriptions","organizations_url":"https://api.github.com/users/bcoca/orgs","repos_url":"https://api.github.com/users/bcoca/repos","events_url":"https://api.github.com/users/bcoca/events{/privacy}","received_events_url":"https://api.github.com/users/bcoca/received_events","type":"User","site_admin":false},"open_issues":15,"closed_issues":449,"state":"open","created_at":"2015-02-11T19:43:06Z","updated_at":"2015-10-27T18:45:39Z","due_on":null,"closed_at":null},"comments":11,"created_at":"2015-10-13T19:16:52Z","updated_at":"2015-10-27T18:45:39Z","closed_at":"2015-10-27T18:45:39Z","body":"Hi,\r\n\r\nrunning the devel branch (@7dfce28) I found that following inconsistency\r\n\r\nI have a playbook with an apt install task with a with_items property. That works fine. Followed by that I have an include task, again with_items (feature is now back in v2 and the reason i running level as beta1 had a bug with include and with_items)\r\n\r\nIn the included task I have an apt [task](https://gist.github.com/basz/c74dff4fb6a333433ec6#file-import_s3_backup-yml-L7) (the exact same as in the playbook) where the item property isn't populated correctly and the task is marked as [skipped](https://gist.github.com/basz/c74dff4fb6a333433ec6#file-sndout-L26).\r\n\r\nperhaps I am doing something wrong; but when i modify the include task such that it operates without the with_items the apt task in the included file runs fine. I think {{ item }} from the with_items is somehow scoped into the apt task.\r\n\r\nhttps://gist.github.com/basz/c74dff4fb6a333433ec6"}}