When using ansible provisioning, I have a task which takes a long time. 6 hours to be exact. Obviously, my AWS token expires after 1 hour. Is there a way to run a script before each packer call? Ideally, I would like to update my
variables after each packer call.
I use aws cli to generate these variables.