From 864be9d9913865d7135ea51a3458e9e0af042fe7 Mon Sep 17 00:00:00 2001 From: mansunkuo Date: Thu, 21 Apr 2016 11:49:46 +0800 Subject: [PATCH] Modify documents of extra_arguments for both ansible(remote) and ansible-local. (#3423) --- website/source/docs/provisioners/ansible-local.html.md | 5 +++++ website/source/docs/provisioners/ansible.html.md | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/website/source/docs/provisioners/ansible-local.html.md b/website/source/docs/provisioners/ansible-local.html.md index 856e9ec8b..abb37d074 100644 --- a/website/source/docs/provisioners/ansible-local.html.md +++ b/website/source/docs/provisioners/ansible-local.html.md @@ -52,6 +52,11 @@ Optional: - `extra_arguments` (array of strings) - An array of extra arguments to pass to the ansible command. By default, this is empty. + Usage example: + +``` +"extra_arguments": [ "--extra-vars \"Region={{user `Region`}} Stage={{user `Stage`}}\"" ] +``` - `inventory_groups` (string) - A comma-separated list of groups to which packer will assign the host `127.0.0.1`. A value of `my_group_1,my_group_2` diff --git a/website/source/docs/provisioners/ansible.html.md b/website/source/docs/provisioners/ansible.html.md index fe9da1e70..70de17c05 100644 --- a/website/source/docs/provisioners/ansible.html.md +++ b/website/source/docs/provisioners/ansible.html.md @@ -84,7 +84,7 @@ Optional Parameters: Usage example: ``` -"extra_arguments": [ "--extra-vars", "\"Region={{user `Region`}} Stage={{user `Stage`}}\"" ] +"extra_arguments": [ "--extra-vars", "Region={{user `Region`}} Stage={{user `Stage`}}" ] ``` - `ansible_env_vars` (array of strings) - Environment variables to set before running Ansible.