{"action":"created","issue":{"url":"https://api.github.com/repos/mitchellh/packer/issues/3911","repository_url":"https://api.github.com/repos/mitchellh/packer","labels_url":"https://api.github.com/repos/mitchellh/packer/issues/3911/labels{/name}","comments_url":"https://api.github.com/repos/mitchellh/packer/issues/3911/comments","events_url":"https://api.github.com/repos/mitchellh/packer/issues/3911/events","html_url":"https://github.com/mitchellh/packer/issues/3911","id":178551616,"number":3911,"title":"Feature: allow Ansible provisioner to specify usage of WinRM instead of SSH","user":{"login":"Holmistr","id":4253850,"avatar_url":"https://avatars.githubusercontent.com/u/4253850?v=3","gravatar_id":"","url":"https://api.github.com/users/Holmistr","html_url":"https://github.com/Holmistr","followers_url":"https://api.github.com/users/Holmistr/followers","following_url":"https://api.github.com/users/Holmistr/following{/other_user}","gists_url":"https://api.github.com/users/Holmistr/gists{/gist_id}","starred_url":"https://api.github.com/users/Holmistr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Holmistr/subscriptions","organizations_url":"https://api.github.com/users/Holmistr/orgs","repos_url":"https://api.github.com/users/Holmistr/repos","events_url":"https://api.github.com/users/Holmistr/events{/privacy}","received_events_url":"https://api.github.com/users/Holmistr/received_events","type":"User","site_admin":false},"labels":[{"id":33051540,"url":"https://api.github.com/repos/mitchellh/packer/labels/enhancement","name":"enhancement","color":"84b6eb","default":true},{"id":337720756,"url":"https://api.github.com/repos/mitchellh/packer/labels/provisioner/ansible-remote","name":"provisioner/ansible-remote","color":"c7def8","default":false},{"id":33051542,"url":"https://api.github.com/repos/mitchellh/packer/labels/question","name":"question","color":"cc317c","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":38,"created_at":"2016-09-22T08:35:49Z","updated_at":"2016-12-07T01:10:06Z","closed_at":null,"body":"My usecase is to create Windows image using Ansible. The problem is that I need to connect to Windows image via WinRM. Ansible already has this capability, you only specify \"ansible_connection: winrm\" and other parameters in the inventory file. \n\nHowever, Packer's Ansible provisioner doesn't allow to add this information to the inventory file. Packer create temporary inventory file which it uses further. As stated in the documentation: \"It dynamically creates an Ansible inventory file configured to use SSH ... \". Also, when looking at the code of Ansible provisioner (https://github.com/mitchellh/packer/blob/master/provisioner/ansible/provisioner.go#L252), I see that there is no option to either specify ansible_connection properties, or provide custom inventory file.\n\nThis feature could be quite useful and I would say not very hard to implement. If you can confirm that this makes sense to implement and we agree on the way how to do it (either provide capability to specify custom inventory file or just add new properties like \"ansible_connection\", etc.), I would be happy to implement it (or at least try).\n"},"comment":{"url":"https://api.github.com/repos/mitchellh/packer/issues/comments/265325040","html_url":"https://github.com/mitchellh/packer/issues/3911#issuecomment-265325040","issue_url":"https://api.github.com/repos/mitchellh/packer/issues/3911","id":265325040,"user":{"login":"bhcleek","id":1958864,"avatar_url":"https://avatars.githubusercontent.com/u/1958864?v=3","gravatar_id":"","url":"https://api.github.com/users/bhcleek","html_url":"https://github.com/bhcleek","followers_url":"https://api.github.com/users/bhcleek/followers","following_url":"https://api.github.com/users/bhcleek/following{/other_user}","gists_url":"https://api.github.com/users/bhcleek/gists{/gist_id}","starred_url":"https://api.github.com/users/bhcleek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bhcleek/subscriptions","organizations_url":"https://api.github.com/users/bhcleek/orgs","repos_url":"https://api.github.com/users/bhcleek/repos","events_url":"https://api.github.com/users/bhcleek/events{/privacy}","received_events_url":"https://api.github.com/users/bhcleek/received_events","type":"User","site_admin":false},"created_at":"2016-12-07T01:10:06Z","updated_at":"2016-12-07T01:10:06Z","body":"@dragan it's due to the (necessary) architecture of packer. RE: https://github.com/mitchellh/packer/issues/3849#issuecomment-247526883"}}
{"actor":{"display_login":"bhcleek"}}