Fix template error on ansible provisioner documentation

This commit is contained in:
Chris Becker 2015-10-05 13:19:21 -04:00
parent 2411c779d1
commit 647a072257
1 changed files with 21 additions and 8 deletions

View File

@ -51,7 +51,12 @@ Optional:
packer will assign the host `127.0.0.1`. A value of `my_group_1,my_group_2` packer will assign the host `127.0.0.1`. A value of `my_group_1,my_group_2`
will generate an Ansible inventory like: will generate an Ansible inventory like:
`{.text} [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 - `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 file must exist on your local system and will be uploaded to the
@ -63,17 +68,25 @@ specified host you're buiding. The `--limit` argument can be provided in the
An example inventory file may look like: An example inventory file may look like:
\`\`\` {.text} \[chi-dbservers\] db-01 ansible\_connection=local db-02 ```{.text}
ansible\_connection=local [chi-dbservers]
db-01 ansible_connection=local
db-02 ansible_connection=local
\[chi-appservers\] app-01 ansible\_connection=local app-02 [chi-appservers]
ansible\_connection=local app-01 ansible_connection=local
app-02 ansible_connection=local
\[chi:children\] chi-dbservers chi-appservers [chi:children]
chi-dbservers
chi-appservers
\[dbservers:children\] chi-dbservers [dbservers:children]
chi-dbservers
\[appservers:children\] chi-appservers \`\`\` [appservers:children]
chi-appservers
```
- `playbook_dir` (string) - a path to the complete ansible directory structure - `playbook_dir` (string) - a path to the complete ansible directory structure
on your local system to be copied to the remote machine as the on your local system to be copied to the remote machine as the