summaryrefslogtreecommitdiffstats
path: root/README.md
diff options
context:
space:
mode:
authorMichael DeHaan <michael.dehaan@gmail.com>2012-02-25 15:58:32 +0100
committerMichael DeHaan <michael.dehaan@gmail.com>2012-02-25 15:58:32 +0100
commit2c5d5a328bebf9edcb4a7339859c801119dde7e8 (patch)
tree87eb97c1760b49a4d506321c0818b3e3591802a4 /README.md
parentGrr, markdown. (diff)
parent- add match_hosts() method to runner.Runner() (diff)
downloadansible-2c5d5a328bebf9edcb4a7339859c801119dde7e8.tar.xz
ansible-2c5d5a328bebf9edcb4a7339859c801119dde7e8.zip
Merge pull request #9 from skvidal/master
use logger to track all events run via ansible on the remote host.
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 effd29bc03..14dfff0d43 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' ],