{"action":"closed","number":40461,"pull_request":{"url":"https://api.github.com/repos/ansible/ansible/pulls/40461","id":189248059,"html_url":"https://github.com/ansible/ansible/pull/40461","diff_url":"https://github.com/ansible/ansible/pull/40461.diff","patch_url":"https://github.com/ansible/ansible/pull/40461.patch","issue_url":"https://api.github.com/repos/ansible/ansible/issues/40461","number":40461,"state":"closed","locked":false,"title":"Updates to fileglob Documentation","user":{"login":"daryltucker","id":1609490,"avatar_url":"https://avatars0.githubusercontent.com/u/1609490?v=4","gravatar_id":"","url":"https://api.github.com/users/daryltucker","html_url":"https://github.com/daryltucker","followers_url":"https://api.github.com/users/daryltucker/followers","following_url":"https://api.github.com/users/daryltucker/following{/other_user}","gists_url":"https://api.github.com/users/daryltucker/gists{/gist_id}","starred_url":"https://api.github.com/users/daryltucker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/daryltucker/subscriptions","organizations_url":"https://api.github.com/users/daryltucker/orgs","repos_url":"https://api.github.com/users/daryltucker/repos","events_url":"https://api.github.com/users/daryltucker/events{/privacy}","received_events_url":"https://api.github.com/users/daryltucker/received_events","type":"User","site_admin":false},"body":"##### SUMMARY\r\n\r\nFixed typo and expanded Notes.\r\n\r\nI am not aware of this issue being tracked.\r\n\r\n##### ISSUE TYPE\r\n\r\n - Docs Pull Request\r\n\r\n##### COMPONENT NAME\r\n\r\n`fileglob` lookup plugin.\r\n\r\n##### ANSIBLE VERSION\r\n\r\n```\r\nansible 2.5.3\r\n  config file = None\r\n  configured module search path = [u'/home/daryl/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules']\r\n  ansible python module location = /mnt/data/src/ansible/.env/lib/python2.7/site-packages/ansible\r\n  executable location = /mnt/data/src/ansible/.env/bin/ansible\r\n  python version = 2.7.15 (default, May  1 2018, 20:16:04) [GCC 7.3.1 20180406]\r\n\r\n\r\n```\r\n\r\n\r\n##### ADDITIONAL INFORMATION\r\n\r\n```\r\n$ ansible-doc -t lookup fileglob\r\n```\r\n###### Before\r\n```\r\n> FILEGLOB    (/mnt/data/src/ansible/.env/lib/python2.7/site-packages/ansible/plugins/lookup/fileglob.py)\r\n\r\n        Matches all files in a single directory, non-recursively, that match a pattern. It calls Python's \"glob\" library.\r\n\r\nOPTIONS (= is mandatory):\r\n\r\n= _terms\r\n        path(s) of files to read\r\n\r\n\r\n\r\nNOTES:\r\n      * Patterns ore only supported on files, not directory/paths.\r\n\r\nAUTHOR: Michael DeHaan <michael.dehaan@gmail.com>\r\n\r\nEXAMPLES:\r\n- name: display content of all .txt files in dir\r\n  debug: msg={{lookup('fileglob', '/my/path/*.txt')}}\r\n\r\n- name: Copy each file over that matches the given pattern\r\n  copy:\r\n    src: \"{{ item }}\"\r\n    dest: \"/etc/fooapp/\"\r\n    owner: \"root\"\r\n    mode: 0600\r\n  with_fileglob:\r\n    - \"/playbooks/files/fooapp/*\"\r\n\r\nRETURN VALUES:\r\n\r\n\r\n  _raw:\r\n    description:\r\n      - content of file(s)\r\n```\r\n\r\n\r\n###### After\r\n\r\n```\r\n> FILEGLOB    (/mnt/data/src/ansible/.env/lib/python2.7/site-packages/ansible/plugins/lookup/fileglob.py)\r\n\r\n        Matches all files in a single directory, non-recursively, that match a pattern. It calls Python's \"glob\" library.\r\n\r\nOPTIONS (= is mandatory):\r\n\r\n= _terms\r\n        path(s) of files to read\r\n\r\n\r\n\r\nNOTES:\r\n      * Patterns are only supported on files, not directory/paths.\r\n      * Matching is against local system files.\r\n\r\nAUTHOR: Michael DeHaan <michael.dehaan@gmail.com>\r\n\r\nEXAMPLES:\r\n- name: display content of all .txt files in dir\r\n  debug: msg={{lookup('fileglob', '/my/path/*.txt')}}\r\n\r\n- name: Copy each file over that matches the given pattern\r\n  copy:\r\n    src: \"{{ item }}\"\r\n    dest: \"/etc/fooapp/\"\r\n    owner: \"root\"\r\n    mode: 0600\r\n  with_fileglob:\r\n    - \"/playbooks/files/fooapp/*\"\r\n\r\nRETURN VALUES:\r\n\r\n\r\n  _raw:\r\n    description:\r\n      - content of file(s)\r\n```\r\n","created_at":"2018-05-20T19:16:11Z","updated_at":"2018-05-24T01:59:43Z","closed_at":"2018-05-24T01:59:43Z","merged_at":"2018-05-24T01:59:43Z","merge_commit_sha":"5edc46431a59c214010dfb223e4a1fb673c9c61b","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":835286067,"url":"https://api.github.com/repos/ansible/ansible/labels/affects_2.6","name":"affects_2.6","color":"ededed","default":false},{"id":849212023,"url":"https://api.github.com/repos/ansible/ansible/labels/docs","name":"docs","color":"0052cc","default":false},{"id":503572087,"url":"https://api.github.com/repos/ansible/ansible/labels/needs_triage","name":"needs_triage","color":"0e8a16","default":false},{"id":723150340,"url":"https://api.github.com/repos/ansible/ansible/labels/new_contributor","name":"new_contributor","color":"ededed","default":false},{"id":636352796,"url":"https://api.github.com/repos/ansible/ansible/labels/support:core","name":"support:core","color":"ededed","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/ansible/ansible/pulls/40461/commits","review_comments_url":"https://api.github.com/repos/ansible/ansible/pulls/40461/comments","review_comment_url":"https://api.github.com/repos/ansible/ansible/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ansible/ansible/issues/40461/comments","statuses_url":"https://api.github.com/repos/ansible/ansible/statuses/feeb131348a9ca3fd3515c5a552a3c70ddd0b4f4","head":{"label":"daryltucker:fileglob-documentation-updates","ref":"fileglob-documentation-updates","sha":"feeb131348a9ca3fd3515c5a552a3c70ddd0b4f4","user":{"login":"daryltucker","id":1609490,"avatar_url":"https://avatars0.githubusercontent.com/u/1609490?v=4","gravatar_id":"","url":"https://api.github.com/users/daryltucker","html_url":"https://github.com/daryltucker","followers_url":"https://api.github.com/users/daryltucker/followers","following_url":"https://api.github.com/users/daryltucker/following{/other_user}","gists_url":"https://api.github.com/users/daryltucker/gists{/gist_id}","starred_url":"https://api.github.com/users/daryltucker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/daryltucker/subscriptions","organizations_url":"https://api.github.com/users/daryltucker/orgs","repos_url":"https://api.github.com/users/daryltucker/repos","events_url":"https://api.github.com/users/daryltucker/events{/privacy}","received_events_url":"https://api.github.com/users/daryltucker/received_events","type":"User","site_admin":false},"repo":{"id":134177770,"name":"ansible","full_name":"daryltucker/ansible","owner":{"login":"daryltucker","id":1609490,"avatar_url":"https://avatars0.githubusercontent.com/u/1609490?v=4","gravatar_id":"","url":"https://api.github.com/users/daryltucker","html_url":"https://github.com/daryltucker","followers_url":"https://api.github.com/users/daryltucker/followers","following_url":"https://api.github.com/users/daryltucker/following{/other_user}","gists_url":"https://api.github.com/users/daryltucker/gists{/gist_id}","starred_url":"https://api.github.com/users/daryltucker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/daryltucker/subscriptions","organizations_url":"https://api.github.com/users/daryltucker/orgs","repos_url":"https://api.github.com/users/daryltucker/repos","events_url":"https://api.github.com/users/daryltucker/events{/privacy}","received_events_url":"https://api.github.com/users/daryltucker/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/daryltucker/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. https://docs.ansible.com/ansible/","fork":true,"url":"https://api.github.com/repos/daryltucker/ansible","forks_url":"https://api.github.com/repos/daryltucker/ansible/forks","keys_url":"https://api.github.com/repos/daryltucker/ansible/keys{/key_id}","collaborators_url":"https://api.github.com/repos/daryltucker/ansible/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/daryltucker/ansible/teams","hooks_url":"https://api.github.com/repos/daryltucker/ansible/hooks","issue_events_url":"https://api.github.com/repos/daryltucker/ansible/issues/events{/number}","events_url":"https://api.github.com/repos/daryltucker/ansible/events","assignees_url":"https://api.github.com/repos/daryltucker/ansible/assignees{/user}","branches_url":"https://api.github.com/repos/daryltucker/ansible/branches{/branch}","tags_url":"https://api.github.com/repos/daryltucker/ansible/tags","blobs_url":"https://api.github.com/repos/daryltucker/ansible/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/daryltucker/ansible/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/daryltucker/ansible/git/refs{/sha}","trees_url":"https://api.github.com/repos/daryltucker/ansible/git/trees{/sha}","statuses_url":"https://api.github.com/repos/daryltucker/ansible/statuses/{sha}","languages_url":"https://api.github.com/repos/daryltucker/ansible/languages","stargazers_url":"https://api.github.com/repos/daryltucker/ansible/stargazers","contributors_url":"https://api.github.com/repos/daryltucker/ansible/contributors","subscribers_url":"https://api.github.com/repos/daryltucker/ansible/subscribers","subscription_url":"https://api.github.com/repos/daryltucker/ansible/subscription","commits_url":"https://api.github.com/repos/daryltucker/ansible/commits{/sha}","git_commits_url":"https://api.github.com/repos/daryltucker/ansible/git/commits{/sha}","comments_url":"https://api.github.com/repos/daryltucker/ansible/comments{/number}","issue_comment_url":"https://api.github.com/repos/daryltucker/ansible/issues/comments{/number}","contents_url":"https://api.github.com/repos/daryltucker/ansible/contents/{+path}","compare_url":"https://api.github.com/repos/daryltucker/ansible/compare/{base}...{head}","merges_url":"https://api.github.com/repos/daryltucker/ansible/merges","archive_url":"https://api.github.com/repos/daryltucker/ansible/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/daryltucker/ansible/downloads","issues_url":"https://api.github.com/repos/daryltucker/ansible/issues{/number}","pulls_url":"https://api.github.com/repos/daryltucker/ansible/pulls{/number}","milestones_url":"https://api.github.com/repos/daryltucker/ansible/milestones{/number}","notifications_url":"https://api.github.com/repos/daryltucker/ansible/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/daryltucker/ansible/labels{/name}","releases_url":"https://api.github.com/repos/daryltucker/ansible/releases{/id}","deployments_url":"https://api.github.com/repos/daryltucker/ansible/deployments","created_at":"2018-05-20T18:54:50Z","updated_at":"2018-05-20T18:55:18Z","pushed_at":"2018-05-20T19:04:14Z","git_url":"git://github.com/daryltucker/ansible.git","ssh_url":"git@github.com:daryltucker/ansible.git","clone_url":"https://github.com/daryltucker/ansible.git","svn_url":"https://github.com/daryltucker/ansible","homepage":"https://www.ansible.com/","size":114114,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"gpl-3.0","name":"GNU General Public License v3.0","spdx_id":"GPL-3.0","url":"https://api.github.com/licenses/gpl-3.0"},"forks":0,"open_issues":0,"watchers":0,"default_branch":"devel"}},"base":{"label":"ansible:devel","ref":"devel","sha":"44d9dd2c77841686bead7bfae0282851a66db5d7","user":{"login":"ansible","id":1507452,"avatar_url":"https://avatars2.githubusercontent.com/u/1507452?v=4","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://avatars2.githubusercontent.com/u/1507452?v=4","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. https://docs.ansible.com/ansible/","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":"2018-05-24T01:52:48Z","pushed_at":"2018-05-24T01:59:43Z","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":"https://www.ansible.com/","size":123914,"stargazers_count":30380,"watchers_count":30380,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":11379,"mirror_url":null,"archived":false,"open_issues_count":5094,"license":{"key":"gpl-3.0","name":"GNU General Public License v3.0","spdx_id":"GPL-3.0","url":"https://api.github.com/licenses/gpl-3.0"},"forks":11379,"open_issues":5094,"watchers":30380,"default_branch":"devel"}},"_links":{"self":{"href":"https://api.github.com/repos/ansible/ansible/pulls/40461"},"html":{"href":"https://github.com/ansible/ansible/pull/40461"},"issue":{"href":"https://api.github.com/repos/ansible/ansible/issues/40461"},"comments":{"href":"https://api.github.com/repos/ansible/ansible/issues/40461/comments"},"review_comments":{"href":"https://api.github.com/repos/ansible/ansible/pulls/40461/comments"},"review_comment":{"href":"https://api.github.com/repos/ansible/ansible/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ansible/ansible/pulls/40461/commits"},"statuses":{"href":"https://api.github.com/repos/ansible/ansible/statuses/feeb131348a9ca3fd3515c5a552a3c70ddd0b4f4"}},"author_association":"NONE","merged":true,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":{"login":"jborean93","id":8462645,"avatar_url":"https://avatars3.githubusercontent.com/u/8462645?v=4","gravatar_id":"","url":"https://api.github.com/users/jborean93","html_url":"https://github.com/jborean93","followers_url":"https://api.github.com/users/jborean93/followers","following_url":"https://api.github.com/users/jborean93/following{/other_user}","gists_url":"https://api.github.com/users/jborean93/gists{/gist_id}","starred_url":"https://api.github.com/users/jborean93/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jborean93/subscriptions","organizations_url":"https://api.github.com/users/jborean93/orgs","repos_url":"https://api.github.com/users/jborean93/repos","events_url":"https://api.github.com/users/jborean93/events{/privacy}","received_events_url":"https://api.github.com/users/jborean93/received_events","type":"User","site_admin":false},"comments":0,"review_comments":0,"maintainer_can_modify":false,"commits":1,"additions":2,"deletions":1,"changed_files":1}}
{"actor":{"display_login":"jborean93"}}