Commit 9b977266 authored by Chris Bednarski's avatar Chris Bednarski

Merge branch 'documentation/ansible_inventory_groups' of...

Merge branch 'documentation/ansible_inventory_groups' of https://github.com/Cbeck527/packer into b-ansible-inventory-docs
parents a49f263e 6343d8f1
...@@ -41,15 +41,16 @@ Optional: ...@@ -41,15 +41,16 @@ Optional:
* `extra_arguments` (array of strings) - An array of extra arguments to pass to the * `extra_arguments` (array of strings) - An array of extra arguments to pass to the
ansible command. By default, this is empty. ansible command. By default, this is empty.
* `inventory_groups` (string) - You can let Packer generate a temporary inventory * `inventory_groups` (string) - A comma-separated list of groups to which
for you. It will contains only `127.0.0.1`. Thanks to `inventory_groups`, packer will assign the host `127.0.0.1`. A value of `my_group_1,my_group_2`
packer will set the current machine into different groups and will will generate an Ansible inventory like:
generate an inventory like:
```text
[my_group_1] [my_group_1]
127.0.0.1 127.0.0.1
[my_group_2] [my_group_2]
127.0.0.1 127.0.0.1
```
* `inventory_file` (string) - The inventory file to be used by ansible. * `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 This file must exist on your local system and will be uploaded to the
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment