You can install ansible via a shell provisioner before you run your
ansible-local provisioner:

  "provisioners": [
>     {
>       "type": "shell",
>       "inline": ["sudo apt-get -y update",
>                 "sudo apt-get -y install software-properties-common",
>                 "sudo apt-add-repository -y ppa:ansible/ansible",
>                 "sudo apt-get -y update",
>                 "sudo apt-get -y install ansible"]
>     },
>     {
>       "type":  "ansible-local",
>       "playbook_file": "../ansible/playbook.yml"
>     }
>   ]

-- 
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/CAGPV1uqyC9CbVpVt2FB5msM2YNBnAgRW4%2BWwcU943NGbn7rGQQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to