Commit 9fa014f7 by Michael DeHaan

Fix uptime example in examples/scripts

parent cb18b3eb
...@@ -8,7 +8,7 @@ import sys ...@@ -8,7 +8,7 @@ import sys
# construct the ansible runner and execute on all hosts # construct the ansible runner and execute on all hosts
results = ansible.runner.Runner( results = ansible.runner.Runner(
pattern='*', forks=10, pattern='*', forks=10,
module_name='command', module_args=['/usr/bin/uptime'], module_name='command', module_args='/usr/bin/uptime',
).run() ).run()
if results is None: if results is None:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment