add the right args
This commit is contained in:
parent
f31b17c3c9
commit
33d9363211
1 changed files with 3 additions and 2 deletions
|
@ -24,8 +24,9 @@ def main(args):
|
||||||
parser.add_option('--host', dest='hostlist', action='append',
|
parser.add_option('--host', dest='hostlist', action='append',
|
||||||
help="hosts to contact, defaults to all in your inventory", default=[])
|
help="hosts to contact, defaults to all in your inventory", default=[])
|
||||||
options, args = parser.parse_args(args)
|
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
|
# no hosts specified? Run against all of them
|
||||||
if not options.hostlist:
|
if not options.hostlist:
|
||||||
options.pattern = 'all'
|
options.pattern = 'all'
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue