Merge pull request #9729 from hashicorp/document_9125

document issue with ansible macros
This commit is contained in:
Megan Marsh 2020-08-07 08:02:00 -07:00 committed by GitHub
commit 8ea6414969
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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