diff options
author | Seth Vidal <skvidal@fedoraproject.org> | 2012-02-25 01:00:37 -0500 |
---|---|---|
committer | Seth Vidal <skvidal@fedoraproject.org> | 2012-02-25 01:00:37 -0500 |
commit | edb968305092e246bfc0525e9a90f25496b31a5a (patch) | |
tree | e7d54bbad93afd93a6b4810c212da3d46988ea7f /README.md | |
parent | ee95a5b0a406b93fd81e8a0d70ff9ebfd3299332 (diff) | |
download | ansible-edb968305092e246bfc0525e9a90f25496b31a5a.tar.gz |
touch up the example API code
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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' ], |