From 961d9b4f0811e736105c7fca40382ec2cf2d37fa Mon Sep 17 00:00:00 2001 From: Megan Marsh Date: Thu, 6 Aug 2020 14:00:26 -0700 Subject: [PATCH] document issue with ansible macros --- website/pages/docs/provisioners/ansible.mdx | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/website/pages/docs/provisioners/ansible.mdx b/website/pages/docs/provisioners/ansible.mdx index 493696095..bfa50da3a 100644 --- a/website/pages/docs/provisioners/ansible.mdx +++ b/website/pages/docs/provisioners/ansible.mdx @@ -20,6 +20,11 @@ machine being provisioned by Packer. will always connect with the user given in the json config for this 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 This is a fully functional template that will provision an image on