Can builder provisioners inform imaging?

I want to build some AWS AMIs. The provisioners are mostly Ansible. With Ansible I create a file near the end of provisioning that includes which software packages were installed successfully and their version numbers. I want to use the contents of this file as the AMI description, so that we have details about what is installed on this image. This can change from build to build because some packages are not compatible with the OS/arch. Presently the only means that exists to create a Description value must be determined before the build; so we must know in advance what will install and what won’t, but we would prefer validation from the build itself. This seems like a straightforward use case. Can this be accomplished with any version of Packer?