From 3495204382f8973f636d8f92c4beab61e8b27d9b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Fievet?= <_@sebastien-fievet.fr> Date: Tue, 6 Oct 2015 15:04:04 +0200 Subject: [PATCH] Fix ansible inventory example --- .../provisioners/ansible-local.html.markdown | 23 ++++++++++++------- 1 file changed, 15 insertions(+), 8 deletions(-) diff --git a/website/source/docs/provisioners/ansible-local.html.markdown b/website/source/docs/provisioners/ansible-local.html.markdown index 7fd084c0a..00ec690c0 100644 --- a/website/source/docs/provisioners/ansible-local.html.markdown +++ b/website/source/docs/provisioners/ansible-local.html.markdown @@ -62,18 +62,25 @@ specified host you're buiding. The `--limit` argument can be provided in the `extra_arguments` option. An example inventory file may look like: +``` +[chi-dbservers] +db-01 ansible_connection=local +db-02 ansible_connection=local -\`\`\` {.text} \[chi-dbservers\] db-01 ansible\_connection=local db-02 -ansible\_connection=local - -\[chi-appservers\] app-01 ansible\_connection=local app-02 -ansible\_connection=local +[chi-appservers] +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 on your local system to be copied to the remote machine as the