{"action":"closed","issue":{"url":"https://api.github.com/repos/hexpm/hex/issues/104","labels_url":"https://api.github.com/repos/hexpm/hex/issues/104/labels{/name}","comments_url":"https://api.github.com/repos/hexpm/hex/issues/104/comments","events_url":"https://api.github.com/repos/hexpm/hex/issues/104/events","html_url":"https://github.com/hexpm/hex/issues/104","id":91624608,"number":104,"title":"Add option to disable confirmation in local.hex and archive.install tasks","user":{"login":"mspanc","id":389651,"avatar_url":"https://avatars.githubusercontent.com/u/389651?v=3","gravatar_id":"","url":"https://api.github.com/users/mspanc","html_url":"https://github.com/mspanc","followers_url":"https://api.github.com/users/mspanc/followers","following_url":"https://api.github.com/users/mspanc/following{/other_user}","gists_url":"https://api.github.com/users/mspanc/gists{/gist_id}","starred_url":"https://api.github.com/users/mspanc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mspanc/subscriptions","organizations_url":"https://api.github.com/users/mspanc/orgs","repos_url":"https://api.github.com/users/mspanc/repos","events_url":"https://api.github.com/users/mspanc/events{/privacy}","received_events_url":"https://api.github.com/users/mspanc/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-06-28T18:29:35Z","updated_at":"2015-06-28T20:40:00Z","closed_at":"2015-06-28T20:40:00Z","body":"At the moment the only way to automate installation of hex and some archive.install tasks while e.g. provisioning a server through ansible is to use such hack:\r\n\r\n`yes | mix hex.local`\r\n\r\nwhich causes to type \"y\" character at mix's stdin.\r\n\r\nOtherwise it will get stuck on confirmation.\r\n\r\nIt's rather nasty solution, I suggest adding environment variable that disables confirmation, similar in functionality to DEBIAN_NONINTERACTIVE in apt-get."}}