From 5134faf0ccad553ad72b7592a6e62ff0dfa7581a Mon Sep 17 00:00:00 2001 From: Mansun Kuo Date: Thu, 10 Mar 2016 17:10:58 +0800 Subject: [PATCH] Add example of extra_arguments --- website/source/docs/provisioners/ansible.html.markdown | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/website/source/docs/provisioners/ansible.html.markdown b/website/source/docs/provisioners/ansible.html.markdown index bb0b26cea..fe9da1e70 100644 --- a/website/source/docs/provisioners/ansible.html.markdown +++ b/website/source/docs/provisioners/ansible.html.markdown @@ -2,7 +2,7 @@ layout: "docs" page_title: "Ansible Provisioner" description: |- - The `ansible` Packer provisioner allows Ansible playbooks to be run to provision the machine. + The `ansible` Packer provisioner allows Ansible playbooks to be run to provision the machine. --- # Ansible Provisioner @@ -81,6 +81,11 @@ Optional Parameters: Defaults to `/usr/lib/sftp-server -e`. - `extra_arguments` (array of strings) - Extra arguments to pass to Ansible. + Usage example: + +``` +"extra_arguments": [ "--extra-vars", "\"Region={{user `Region`}} Stage={{user `Stage`}}\"" ] +``` - `ansible_env_vars` (array of strings) - Environment variables to set before running Ansible. If unset, defaults to `ANSIBLE_HOST_KEY_CHECKING=False`.