Oo, so I can do something like this?
"provisioners": [
{
"type": "shell",
"inline": [ "hostname > /tmp/hostname" ]
},
{
"type": "file",
"direction": "download",
"source": "/tmp/hostname",
"destination": "hostname"
},
{
"type": "shell-local",
"command": "ansible-playbook main.yml -i hostname -vv"
}
]
(where hostname is in fact the ip address in a file of some description)
--
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/371c479c-df79-4693-8da0-d1d5b3667d5c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.