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
microseconds
Provisioner step for packer:
{
"type": "ansible-local",
"ansible_env_vars": [ "ANSIBLE_REMOTE_TMP='/home/ubuntu/.ansible/tmp'"
],
"playbook_file": "ansible/harden.yaml",
"playbook_dir": "ansible/",
"extra_arguments": [ "--tags='level_1_server'
--vault-password-file=pwfile" ],
"role_paths" : "ansible/roles"
}
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?
--
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/hashicorp/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/00b7e801-803c-4a6d-b365-c89ee1023c03n%40googlegroups.com.