I am trying to add some hardening to an AMI image which moves /tmp to systemd as one of the steps. This understandably kills the run. When I try to use ansible_env_vars to place the temporary ansible files elsewhere I get
Error: Failed to prepare build: "amazon-ebs" 1 error occurred: * unknown configuration key: '"ansible_env_vars"' ==> Wait completed after 5 microsecondsProvisioner step for packer:
{I'm wondering if this is maybe an ebs issue with ansible-local and if I should just use ansible instead. The only other option I can see is to rewrite the ansible step that changes /tmp as a shell script but I would rather avoid that. Any other ideas to get this to run?