mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-08 06:12:51 +00:00
Fix uptime example in examples/scripts
This commit is contained in:
@@ -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:
|
||||||
|
|||||||
Reference in New Issue
Block a user