diff --git a/scripts/needs-updates b/scripts/needs-updates index a03fc0b13b..6cc5de5457 100755 --- a/scripts/needs-updates +++ b/scripts/needs-updates @@ -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'