{"action":"created","issue":{"url":"https://api.github.com/repos/ansible/ansible/issues/11444","labels_url":"https://api.github.com/repos/ansible/ansible/issues/11444/labels{/name}","comments_url":"https://api.github.com/repos/ansible/ansible/issues/11444/comments","events_url":"https://api.github.com/repos/ansible/ansible/issues/11444/events","html_url":"https://github.com/ansible/ansible/issues/11444","id":92141540,"number":11444,"title":"fileglob limited to globbing files(!)","user":{"login":"jan-grant","id":12950669,"avatar_url":"https://avatars.githubusercontent.com/u/12950669?v=3","gravatar_id":"","url":"https://api.github.com/users/jan-grant","html_url":"https://github.com/jan-grant","followers_url":"https://api.github.com/users/jan-grant/followers","following_url":"https://api.github.com/users/jan-grant/following{/other_user}","gists_url":"https://api.github.com/users/jan-grant/gists{/gist_id}","starred_url":"https://api.github.com/users/jan-grant/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jan-grant/subscriptions","organizations_url":"https://api.github.com/users/jan-grant/orgs","repos_url":"https://api.github.com/users/jan-grant/repos","events_url":"https://api.github.com/users/jan-grant/events{/privacy}","received_events_url":"https://api.github.com/users/jan-grant/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/P4","name":"P4","color":"bfe5bf"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-06-30T16:47:32Z","updated_at":"2015-07-04T01:57:20Z","closed_at":null,"body":"We could do with a dirglob plugin that gives us a list of directories for use in a with_dirglob:\r\n\r\nwith_dirglob: \"{{ my_dir }}/*\"\r\n\r\n\r\nAlternatively, (or additionally), it'd be nice to expose isdir and isfile (and perhaps other os.path tests) as J2 filters, and provide a non-limited LookupModule which'd let us write:\r\n\r\n\r\nwith_glob: \"{{ my_dir }}/*\"\r\nwhen: item|isdir\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/ansible/ansible/issues/comments/118449626","html_url":"https://github.com/ansible/ansible/issues/11444#issuecomment-118449626","issue_url":"https://api.github.com/repos/ansible/ansible/issues/11444","id":118449626,"user":{"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},"created_at":"2015-07-04T01:57:20Z","updated_at":"2015-07-04T01:57:20Z","body":"had to look it up\r\n\r\n with_items: \"{{lookup('pipe', 'find /etc -maxdepth 1 -mindepth 1 -type d').split() }}\"\r\n"}}