document issue with ansible macros

This commit is contained in:
Megan Marsh 2020-08-06 14:00:26 -07:00
parent 6d1a146143
commit 961d9b4f08
1 changed files with 5 additions and 0 deletions

View File

@ -20,6 +20,11 @@ machine being provisioned by Packer.
will always connect with the user given in the json config for this will always connect with the user given in the json config for this
provisioner. provisioner.
-> **Note:** Options below that use the Packer template engine won't be able to
accept jinja2 `{{ function }}` macro syntax in a way that can be preserved to
the Ansible run. If you need to set variables using Ansible macros, you need to
do so inside your playbooks or inventory files.
## Basic Example ## Basic Example
This is a fully functional template that will provision an image on This is a fully functional template that will provision an image on