Merge pull request #3330 from mansunkuo/master

Add example of extra_arguments
This commit is contained in:
Rickard von Essen 2016-03-10 15:24:55 +01:00
commit cd83c3f2eb
1 changed files with 6 additions and 1 deletions

View File

@ -2,7 +2,7 @@
layout: "docs" layout: "docs"
page_title: "Ansible Provisioner" page_title: "Ansible Provisioner"
description: |- 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 # Ansible Provisioner
@ -81,6 +81,11 @@ Optional Parameters:
Defaults to `/usr/lib/sftp-server -e`. Defaults to `/usr/lib/sftp-server -e`.
- `extra_arguments` (array of strings) - Extra arguments to pass to Ansible. - `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. - `ansible_env_vars` (array of strings) - Environment variables to set before running Ansible.
If unset, defaults to `ANSIBLE_HOST_KEY_CHECKING=False`. If unset, defaults to `ANSIBLE_HOST_KEY_CHECKING=False`.