From 6343d8f16a28a50456a7131f29f8dc3694773098 Mon Sep 17 00:00:00 2001 From: Chris Becker Date: Tue, 14 Jul 2015 11:43:55 -0400 Subject: [PATCH] Update `inventory_groups` documentation for clarity --- .../provisioners/ansible-local.html.markdown | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/website/source/docs/provisioners/ansible-local.html.markdown b/website/source/docs/provisioners/ansible-local.html.markdown index 0a12dbc5b..7d8f18b8f 100644 --- a/website/source/docs/provisioners/ansible-local.html.markdown +++ b/website/source/docs/provisioners/ansible-local.html.markdown @@ -41,15 +41,16 @@ Optional: * `extra_arguments` (array of strings) - An array of extra arguments to pass to the ansible command. By default, this is empty. -* `inventory_groups` (string) - You can let Packer generate a temporary inventory - for you. It will contains only `127.0.0.1`. Thanks to `inventory_groups`, - packer will set the current machine into different groups and will - generate an inventory like: +* `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` + will generate an Ansible inventory like: - [my_group_1] - 127.0.0.1 - [my_group_2] - 127.0.0.1 +```text +[my_group_1] +127.0.0.1 +[my_group_2] +127.0.0.1 +``` * `inventory_file` (string) - The inventory file to be used by ansible. This file must exist on your local system and will be uploaded to the