{"action":"created","issue":{"url":"https://api.github.com/repos/ansible/ansible/issues/10048","labels_url":"https://api.github.com/repos/ansible/ansible/issues/10048/labels{/name}","comments_url":"https://api.github.com/repos/ansible/ansible/issues/10048/comments","events_url":"https://api.github.com/repos/ansible/ansible/issues/10048/events","html_url":"https://github.com/ansible/ansible/pull/10048","id":54835941,"number":10048,"title":"Add vault support to file lookup plugin","user":{"login":"rouge8","id":237005,"avatar_url":"https://avatars.githubusercontent.com/u/237005?v=3","gravatar_id":"","url":"https://api.github.com/users/rouge8","html_url":"https://github.com/rouge8","followers_url":"https://api.github.com/users/rouge8/followers","following_url":"https://api.github.com/users/rouge8/following{/other_user}","gists_url":"https://api.github.com/users/rouge8/gists{/gist_id}","starred_url":"https://api.github.com/users/rouge8/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rouge8/subscriptions","organizations_url":"https://api.github.com/users/rouge8/orgs","repos_url":"https://api.github.com/users/rouge8/repos","events_url":"https://api.github.com/users/rouge8/events{/privacy}","received_events_url":"https://api.github.com/users/rouge8/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ansible/ansible/labels/feature_pull_request","name":"feature_pull_request","color":"009800"},{"url":"https://api.github.com/repos/ansible/ansible/labels/P3","name":"P3","color":"fef2c0"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2015-01-20T02:20:14Z","updated_at":"2015-02-18T05:20:24Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/ansible/ansible/pulls/10048","html_url":"https://github.com/ansible/ansible/pull/10048","diff_url":"https://github.com/ansible/ansible/pull/10048.diff","patch_url":"https://github.com/ansible/ansible/pull/10048.patch"},"body":"The file lookup plugin now automatically decrypts ansible-vault encrypted files.\n\nFor example:\n\n```yaml\n- hosts: localhost\n connection: local\n tasks:\n   - name: \"Show secret stuff\"\n     debug: msg=\"{{ lookup('file', 'files/secret_stuff') }}\"\n\n    - name: \"non secret stuff\"\n     debug: msg=\"{{ lookup('file', 'files/not_secret') }}\"\n```\n\nIf 'files/secret_stuff' is encrypted with ansible-vault, running the example playbook with a provided vault password will print the contents of 'files/secret_stuff'.\n\nThis is based on #8110 and #8533, but updated for the latest devel branch and with an added integration test."},"comment":{"url":"https://api.github.com/repos/ansible/ansible/issues/comments/74814201","html_url":"https://github.com/ansible/ansible/pull/10048#issuecomment-74814201","issue_url":"https://api.github.com/repos/ansible/ansible/issues/10048","id":74814201,"user":{"login":"benodom","id":3485126,"avatar_url":"https://avatars.githubusercontent.com/u/3485126?v=3","gravatar_id":"","url":"https://api.github.com/users/benodom","html_url":"https://github.com/benodom","followers_url":"https://api.github.com/users/benodom/followers","following_url":"https://api.github.com/users/benodom/following{/other_user}","gists_url":"https://api.github.com/users/benodom/gists{/gist_id}","starred_url":"https://api.github.com/users/benodom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/benodom/subscriptions","organizations_url":"https://api.github.com/users/benodom/orgs","repos_url":"https://api.github.com/users/benodom/repos","events_url":"https://api.github.com/users/benodom/events{/privacy}","received_events_url":"https://api.github.com/users/benodom/received_events","type":"User","site_admin":false},"created_at":"2015-02-18T05:20:24Z","updated_at":"2015-02-18T05:20:24Z","body":":+1:  +1 upvote, thanks @rouge8 "}}