diff options
author | Michael DeHaan <michael.dehaan@gmail.com> | 2012-02-25 15:58:32 +0100 |
---|---|---|
committer | Michael DeHaan <michael.dehaan@gmail.com> | 2012-02-25 15:58:32 +0100 |
commit | 2c5d5a328bebf9edcb4a7339859c801119dde7e8 (patch) | |
tree | 87eb97c1760b49a4d506321c0818b3e3591802a4 /README.md | |
parent | Grr, markdown. (diff) | |
parent | - add match_hosts() method to runner.Runner() (diff) | |
download | ansible-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.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' ], |