{"action":"closed","number":142,"pull_request":{"url":"https://api.github.com/repos/ansible/ansible-modules-extras/pulls/142","id":25791863,"html_url":"https://github.com/ansible/ansible-modules-extras/pull/142","diff_url":"https://github.com/ansible/ansible-modules-extras/pull/142.diff","patch_url":"https://github.com/ansible/ansible-modules-extras/pull/142.patch","issue_url":"https://api.github.com/repos/ansible/ansible-modules-extras/issues/142","number":142,"state":"closed","locked":false,"title":"Added the binary module for writing binary files to the filesystem.","user":{"login":"deberon","id":2160277,"avatar_url":"https://avatars.githubusercontent.com/u/2160277?v=3","gravatar_id":"","url":"https://api.github.com/users/deberon","html_url":"https://github.com/deberon","followers_url":"https://api.github.com/users/deberon/followers","following_url":"https://api.github.com/users/deberon/following{/other_user}","gists_url":"https://api.github.com/users/deberon/gists{/gist_id}","starred_url":"https://api.github.com/users/deberon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/deberon/subscriptions","organizations_url":"https://api.github.com/users/deberon/orgs","repos_url":"https://api.github.com/users/deberon/repos","events_url":"https://api.github.com/users/deberon/events{/privacy}","received_events_url":"https://api.github.com/users/deberon/received_events","type":"User","site_admin":false},"body":"The binary module accepts a base64 string and a destination parameter. With these it writes bytes out to the file system. While these bytes could technically be ASCII or Unicode (or other text-based encoding), the purpose of this module is to write out binary files to the file system. This allows a base64 string to be checked into version control or, as will be more likely, into group vars.\r\n\r\nIn my case the base64 string was included in the group vars in Ansible Tower and allowed me to write out separate binary files for separate groups. I submitted this request to the dev mailing list and did not hear any other way to accomplish what I needed. I figured I would submit a pull request and let somebody decide whether it was common enough of a task that a module should be included with Ansible.","created_at":"2014-12-10T01:13:59Z","updated_at":"2015-07-28T22:30:00Z","closed_at":"2015-07-28T22:30:00Z","merged_at":null,"merge_commit_sha":"dd38042fc77d435c68e40715bd4ab09385d0383a","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/ansible/ansible-modules-extras/pulls/142/commits","review_comments_url":"https://api.github.com/repos/ansible/ansible-modules-extras/pulls/142/comments","review_comment_url":"https://api.github.com/repos/ansible/ansible-modules-extras/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ansible/ansible-modules-extras/issues/142/comments","statuses_url":"https://api.github.com/repos/ansible/ansible-modules-extras/statuses/374cc194deb3d9e35c280c1cb5329f1b45c4bab9","head":{"label":"deberon:devel","ref":"devel","sha":"374cc194deb3d9e35c280c1cb5329f1b45c4bab9","user":{"login":"deberon","id":2160277,"avatar_url":"https://avatars.githubusercontent.com/u/2160277?v=3","gravatar_id":"","url":"https://api.github.com/users/deberon","html_url":"https://github.com/deberon","followers_url":"https://api.github.com/users/deberon/followers","following_url":"https://api.github.com/users/deberon/following{/other_user}","gists_url":"https://api.github.com/users/deberon/gists{/gist_id}","starred_url":"https://api.github.com/users/deberon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/deberon/subscriptions","organizations_url":"https://api.github.com/users/deberon/orgs","repos_url":"https://api.github.com/users/deberon/repos","events_url":"https://api.github.com/users/deberon/events{/privacy}","received_events_url":"https://api.github.com/users/deberon/received_events","type":"User","site_admin":false},"repo":{"id":26778144,"name":"ansible-modules-extras","full_name":"deberon/ansible-modules-extras","owner":{"login":"deberon","id":2160277,"avatar_url":"https://avatars.githubusercontent.com/u/2160277?v=3","gravatar_id":"","url":"https://api.github.com/users/deberon","html_url":"https://github.com/deberon","followers_url":"https://api.github.com/users/deberon/followers","following_url":"https://api.github.com/users/deberon/following{/other_user}","gists_url":"https://api.github.com/users/deberon/gists{/gist_id}","starred_url":"https://api.github.com/users/deberon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/deberon/subscriptions","organizations_url":"https://api.github.com/users/deberon/orgs","repos_url":"https://api.github.com/users/deberon/repos","events_url":"https://api.github.com/users/deberon/events{/privacy}","received_events_url":"https://api.github.com/users/deberon/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/deberon/ansible-modules-extras","description":"Ansible extra modules - these modules ship with ansible","fork":true,"url":"https://api.github.com/repos/deberon/ansible-modules-extras","forks_url":"https://api.github.com/repos/deberon/ansible-modules-extras/forks","keys_url":"https://api.github.com/repos/deberon/ansible-modules-extras/keys{/key_id}","collaborators_url":"https://api.github.com/repos/deberon/ansible-modules-extras/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/deberon/ansible-modules-extras/teams","hooks_url":"https://api.github.com/repos/deberon/ansible-modules-extras/hooks","issue_events_url":"https://api.github.com/repos/deberon/ansible-modules-extras/issues/events{/number}","events_url":"https://api.github.com/repos/deberon/ansible-modules-extras/events","assignees_url":"https://api.github.com/repos/deberon/ansible-modules-extras/assignees{/user}","branches_url":"https://api.github.com/repos/deberon/ansible-modules-extras/branches{/branch}","tags_url":"https://api.github.com/repos/deberon/ansible-modules-extras/tags","blobs_url":"https://api.github.com/repos/deberon/ansible-modules-extras/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/deberon/ansible-modules-extras/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/deberon/ansible-modules-extras/git/refs{/sha}","trees_url":"https://api.github.com/repos/deberon/ansible-modules-extras/git/trees{/sha}","statuses_url":"https://api.github.com/repos/deberon/ansible-modules-extras/statuses/{sha}","languages_url":"https://api.github.com/repos/deberon/ansible-modules-extras/languages","stargazers_url":"https://api.github.com/repos/deberon/ansible-modules-extras/stargazers","contributors_url":"https://api.github.com/repos/deberon/ansible-modules-extras/contributors","subscribers_url":"https://api.github.com/repos/deberon/ansible-modules-extras/subscribers","subscription_url":"https://api.github.com/repos/deberon/ansible-modules-extras/subscription","commits_url":"https://api.github.com/repos/deberon/ansible-modules-extras/commits{/sha}","git_commits_url":"https://api.github.com/repos/deberon/ansible-modules-extras/git/commits{/sha}","comments_url":"https://api.github.com/repos/deberon/ansible-modules-extras/comments{/number}","issue_comment_url":"https://api.github.com/repos/deberon/ansible-modules-extras/issues/comments{/number}","contents_url":"https://api.github.com/repos/deberon/ansible-modules-extras/contents/{+path}","compare_url":"https://api.github.com/repos/deberon/ansible-modules-extras/compare/{base}...{head}","merges_url":"https://api.github.com/repos/deberon/ansible-modules-extras/merges","archive_url":"https://api.github.com/repos/deberon/ansible-modules-extras/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/deberon/ansible-modules-extras/downloads","issues_url":"https://api.github.com/repos/deberon/ansible-modules-extras/issues{/number}","pulls_url":"https://api.github.com/repos/deberon/ansible-modules-extras/pulls{/number}","milestones_url":"https://api.github.com/repos/deberon/ansible-modules-extras/milestones{/number}","notifications_url":"https://api.github.com/repos/deberon/ansible-modules-extras/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/deberon/ansible-modules-extras/labels{/name}","releases_url":"https://api.github.com/repos/deberon/ansible-modules-extras/releases{/id}","created_at":"2014-11-17T21:29:07Z","updated_at":"2014-12-10T03:46:17Z","pushed_at":"2015-07-17T15:54:35Z","git_url":"git://github.com/deberon/ansible-modules-extras.git","ssh_url":"git@github.com:deberon/ansible-modules-extras.git","clone_url":"https://github.com/deberon/ansible-modules-extras.git","svn_url":"https://github.com/deberon/ansible-modules-extras","homepage":"","size":5580,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":0,"forks":1,"open_issues":0,"watchers":0,"default_branch":"devel"}},"base":{"label":"ansible:devel","ref":"devel","sha":"b8071a8d5eebe405250774a0b7c6c74451bc9532","user":{"login":"ansible","id":1507452,"avatar_url":"https://avatars.githubusercontent.com/u/1507452?v=3","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":24474138,"name":"ansible-modules-extras","full_name":"ansible/ansible-modules-extras","owner":{"login":"ansible","id":1507452,"avatar_url":"https://avatars.githubusercontent.com/u/1507452?v=3","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-modules-extras","description":"Ansible extra modules - these modules ship with ansible","fork":false,"url":"https://api.github.com/repos/ansible/ansible-modules-extras","forks_url":"https://api.github.com/repos/ansible/ansible-modules-extras/forks","keys_url":"https://api.github.com/repos/ansible/ansible-modules-extras/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ansible/ansible-modules-extras/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ansible/ansible-modules-extras/teams","hooks_url":"https://api.github.com/repos/ansible/ansible-modules-extras/hooks","issue_events_url":"https://api.github.com/repos/ansible/ansible-modules-extras/issues/events{/number}","events_url":"https://api.github.com/repos/ansible/ansible-modules-extras/events","assignees_url":"https://api.github.com/repos/ansible/ansible-modules-extras/assignees{/user}","branches_url":"https://api.github.com/repos/ansible/ansible-modules-extras/branches{/branch}","tags_url":"https://api.github.com/repos/ansible/ansible-modules-extras/tags","blobs_url":"https://api.github.com/repos/ansible/ansible-modules-extras/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ansible/ansible-modules-extras/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ansible/ansible-modules-extras/git/refs{/sha}","trees_url":"https://api.github.com/repos/ansible/ansible-modules-extras/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ansible/ansible-modules-extras/statuses/{sha}","languages_url":"https://api.github.com/repos/ansible/ansible-modules-extras/languages","stargazers_url":"https://api.github.com/repos/ansible/ansible-modules-extras/stargazers","contributors_url":"https://api.github.com/repos/ansible/ansible-modules-extras/contributors","subscribers_url":"https://api.github.com/repos/ansible/ansible-modules-extras/subscribers","subscription_url":"https://api.github.com/repos/ansible/ansible-modules-extras/subscription","commits_url":"https://api.github.com/repos/ansible/ansible-modules-extras/commits{/sha}","git_commits_url":"https://api.github.com/repos/ansible/ansible-modules-extras/git/commits{/sha}","comments_url":"https://api.github.com/repos/ansible/ansible-modules-extras/comments{/number}","issue_comment_url":"https://api.github.com/repos/ansible/ansible-modules-extras/issues/comments{/number}","contents_url":"https://api.github.com/repos/ansible/ansible-modules-extras/contents/{+path}","compare_url":"https://api.github.com/repos/ansible/ansible-modules-extras/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ansible/ansible-modules-extras/merges","archive_url":"https://api.github.com/repos/ansible/ansible-modules-extras/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ansible/ansible-modules-extras/downloads","issues_url":"https://api.github.com/repos/ansible/ansible-modules-extras/issues{/number}","pulls_url":"https://api.github.com/repos/ansible/ansible-modules-extras/pulls{/number}","milestones_url":"https://api.github.com/repos/ansible/ansible-modules-extras/milestones{/number}","notifications_url":"https://api.github.com/repos/ansible/ansible-modules-extras/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ansible/ansible-modules-extras/labels{/name}","releases_url":"https://api.github.com/repos/ansible/ansible-modules-extras/releases{/id}","created_at":"2014-09-25T20:28:42Z","updated_at":"2015-07-28T16:10:31Z","pushed_at":"2015-07-28T21:48:42Z","git_url":"git://github.com/ansible/ansible-modules-extras.git","ssh_url":"git@github.com:ansible/ansible-modules-extras.git","clone_url":"https://github.com/ansible/ansible-modules-extras.git","svn_url":"https://github.com/ansible/ansible-modules-extras","homepage":"","size":28022,"stargazers_count":271,"watchers_count":271,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":570,"mirror_url":null,"open_issues_count":217,"forks":570,"open_issues":217,"watchers":271,"default_branch":"devel"}},"_links":{"self":{"href":"https://api.github.com/repos/ansible/ansible-modules-extras/pulls/142"},"html":{"href":"https://github.com/ansible/ansible-modules-extras/pull/142"},"issue":{"href":"https://api.github.com/repos/ansible/ansible-modules-extras/issues/142"},"comments":{"href":"https://api.github.com/repos/ansible/ansible-modules-extras/issues/142/comments"},"review_comments":{"href":"https://api.github.com/repos/ansible/ansible-modules-extras/pulls/142/comments"},"review_comment":{"href":"https://api.github.com/repos/ansible/ansible-modules-extras/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ansible/ansible-modules-extras/pulls/142/commits"},"statuses":{"href":"https://api.github.com/repos/ansible/ansible-modules-extras/statuses/374cc194deb3d9e35c280c1cb5329f1b45c4bab9"}},"merged":false,"mergeable":true,"mergeable_state":"clean","merged_by":null,"comments":17,"review_comments":1,"commits":2,"additions":112,"deletions":0,"changed_files":1}}