Although, now that I think about it, running ansible-local wouldn't be 
extremely feasible due to the fact that it would be running on a Windows 
machine which would not be great to setup.

On Thursday, 23 November 2017 09:03:12 UTC, SurferL wrote:
>
> Hi jordan,
>
> Do you have an example of what you're suggesting?
>
> Mine is currently something like:
>
> "provisioners": [
> {
> "type": "ansible",
> "user": "{{ user `username` }}",
> "playbook_file": "./ansible/site.yml",
> "groups": [
> "{{ user `ansible_group` }}"
> ],
> "ansible_env_vars": [
> "ANSIBLE_CONFIG=../../../ansible/ansible.cfg",
> "ANSIBLE_HOST_KEY_CHECKING=False",
> "ANSIBLE_SSH_ARGS='-o ForwardAgent=yes -o ControlMaster=auto -o 
> ControlPersist=30m'"
> ],
> "extra_arguments": [
> "-vvv",
> "--extra-vars", "ansible_shell_executable=None ansible_user={{ user 
> `username` }} ansible_password={{ user `password` }} ansible_become_pass={{ 
> user `password` }}",
> "--connection", "packer"
> ]
> }
>
>

-- 
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/e95c89d4-deb2-485a-a1f7-4b46f7947cea%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to