hello,
i am trying to build a template on azure, but i need to execute some 
ansible tasks locally on the packer server
when i set the following in the packer config file 
 "--extra-vars", "ansible_shell_type=powershell 
ansible_shell_executable=None",

i cannot execute anymore local commands. while the tasks get executed 
successfully on the remote host



i have tried to use an inventory file with the line
default ansible_host=127.0.0.1 ansible_user=testuser ansible_port=44299

so as result i can execute local tasks but packer fails to connect to the  
remote windows host

i have also tried to use  host_alias 
<https://www.packer.io/docs/provisioners/ansible.html#host_alias>  in the 
packer config file, to assign an alias to the remote host and in the 
inventory file i have used this alias to set its remote shell to be 
powershell. but this did not work well


so how can i tell packer that the local shell is /bin/sh  and the remote 
shell is powershell?

thanks

-- 
This mailing list is governed under the HashiCorp Community Guidelines - 
https://www.hashicorp.com/community-guidelines.html. Behavior in violation of 
those guidelines may result in your removal from this mailing list.

GitHub Issues: https://github.com/mitchellh/packer/issues
IRC: #packer-tool on Freenode
--- 
You received this message because you are subscribed to the Google Groups 
"Packer" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/packer-tool/5ea6620e-3853-4250-aee9-c9c64c664bbd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to