Merge pull request #3330 from mansunkuo/master
Add example of extra_arguments
This commit is contained in:
commit
cd83c3f2eb
|
@ -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`.
|
||||||
|
|
Loading…
Reference in New Issue