add the right args

This commit is contained in:
Seth Vidal 2013-06-10 23:54:27 +00:00
parent f31b17c3c9
commit 33d9363211

View file

@ -24,8 +24,9 @@ def main(args):
parser.add_option('--host', dest='hostlist', action='append',
help="hosts to contact, defaults to all in your inventory", default=[])
options, args = parser.parse_args(args)
options.module_name = 'command'
options.module_name = 'shell'
options.module_args = 'yum check-update > /dev/null'
# no hosts specified? Run against all of them
if not options.hostlist:
options.pattern = 'all'