summaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorSeth Vidal <skvidal@fedoraproject.org>2012-02-25 01:00:37 -0500
committerSeth Vidal <skvidal@fedoraproject.org>2012-02-25 01:00:37 -0500
commitedb968305092e246bfc0525e9a90f25496b31a5a (patch)
treee7d54bbad93afd93a6b4810c212da3d46988ea7f /README.md
parentee95a5b0a406b93fd81e8a0d70ff9ebfd3299332 (diff)
downloadansible-edb968305092e246bfc0525e9a90f25496b31a5a.tar.gz
touch up the example API code
Diffstat (limited to 'README.md')
-rw-r--r--README.md4
1 files changed, 3 insertions, 1 deletions
diff --git a/README.md b/README.md
index e683493662..34380744e9 100644
--- a/README.md
+++ b/README.md
@@ -83,7 +83,8 @@ track of which hosts were successfully contacted seperately from hosts
that had communication problems. The format of the return, if successful,
is entirely up to the module.
- import ansible
+
+ import ansible.runner
runner = ansible.runner.Runner(
pattern='*',
module_name='inventory',
@@ -91,6 +92,7 @@ is entirely up to the module.
)
data = runner.run()
+data is a dictionary:
{
'contacted' : {
'xyz.example.com' : [ 'any kind of datastructure is returnable' ],