I’m betting the answer to this is “no,” but maybe there’s a way I’m not seeing…
I have a Packer template that does a remote shell to install a current version of package (i.e., Jenkins)… I’d like to be able to “pull back” the installed version of that package, so I could annotate a tag on the new AMI with that version.
Is there a direct (or convoluted) way to do something like this? I saw the topic
Return variables from shell provisioner into packer variables but I don’t think it answers the question.