{"action":"created","issue":{"url":"https://api.github.com/repos/ansible/ansible-modules-extras/issues/905","labels_url":"https://api.github.com/repos/ansible/ansible-modules-extras/issues/905/labels{/name}","comments_url":"https://api.github.com/repos/ansible/ansible-modules-extras/issues/905/comments","events_url":"https://api.github.com/repos/ansible/ansible-modules-extras/issues/905/events","html_url":"https://github.com/ansible/ansible-modules-extras/pull/905","id":104238130,"number":905,"title":"Add new option \"noprompt\" for win_chocolatey","user":{"login":"mrknmc","id":738351,"avatar_url":"https://avatars.githubusercontent.com/u/738351?v=3","gravatar_id":"","url":"https://api.github.com/users/mrknmc","html_url":"https://github.com/mrknmc","followers_url":"https://api.github.com/users/mrknmc/followers","following_url":"https://api.github.com/users/mrknmc/following{/other_user}","gists_url":"https://api.github.com/users/mrknmc/gists{/gist_id}","starred_url":"https://api.github.com/users/mrknmc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mrknmc/subscriptions","organizations_url":"https://api.github.com/users/mrknmc/orgs","repos_url":"https://api.github.com/users/mrknmc/repos","events_url":"https://api.github.com/users/mrknmc/events{/privacy}","received_events_url":"https://api.github.com/users/mrknmc/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ansible/ansible-modules-extras/labels/bugfix_pull_request","name":"bugfix_pull_request","color":"ded270"},{"url":"https://api.github.com/repos/ansible/ansible-modules-extras/labels/needs_revision","name":"needs_revision","color":"eb6420"},{"url":"https://api.github.com/repos/ansible/ansible-modules-extras/labels/windows","name":"windows","color":"777777"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-09-01T10:41:30Z","updated_at":"2015-09-02T15:45:42Z","closed_at":"2015-09-01T16:00:20Z","pull_request":{"url":"https://api.github.com/repos/ansible/ansible-modules-extras/pulls/905","html_url":"https://github.com/ansible/ansible-modules-extras/pull/905","diff_url":"https://github.com/ansible/ansible-modules-extras/pull/905.diff","patch_url":"https://github.com/ansible/ansible-modules-extras/pull/905.patch"},"body":"The `noprompt` option allows you to install chocolatey packages with the `-y` flag.\r\n\r\nI am not convinced `noprompt` is the best name for this flag but chocolatey documentations refers to `-y` as:\r\n> Add -y for previous behavior with no prompt.\r\n\r\nThis flag is useful when installing packages that have dependencies, for example the rabbitmq package has a depedency on the erlang package. With `-y` you automatically confirm the prompt asking you to install the erlang package.\r\n\r\nFollowing is an example prompt when trying to uninstall the erlang package:\r\n\r\n```\r\nC:\\Users\\vagrant>C:\\ProgramData\\chocolatey\\choco.exe uninstall erlang\r\nChocolatey v0.9.9.8\r\nUninstalling the following packages:\r\nerlang\r\n\r\nerlang v18.0.20150709.2\r\nThe package erlang wants to run 'chocolateyUninstall.ps1'.\r\nNote: If you don't run this script, the installation will fail.\r\nNote: To confirm automatically next time, use '-y' or consider setting\r\n 'allowGlobalConfirmation'. Run 'choco feature -h' for more details.\r\nDo you want to run the script?\r\n 1) yes\r\n 2) no\r\n 3) print\r\n```"},"comment":{"url":"https://api.github.com/repos/ansible/ansible-modules-extras/issues/comments/137139182","html_url":"https://github.com/ansible/ansible-modules-extras/pull/905#issuecomment-137139182","issue_url":"https://api.github.com/repos/ansible/ansible-modules-extras/issues/905","id":137139182,"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-09-02T15:45:42Z","updated_at":"2015-09-02T15:45:42Z","body":"wouldn't people using older versions still benefit from this feature?"}}