mirror of
https://pagure.io/fedora-infra/ansible.git
synced 2026-03-20 03:57:02 +08:00
add the right args
This commit is contained in:
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user