Force no check mode during configuration dump
This commit is contained in:
parent
1577ab3c5e
commit
a53e3d615d
@ -170,9 +170,11 @@ def config_dump(parsed_args, host=None, hosts=None, var_name=None,
|
||||
extra_vars["dump_var_name"] = var_name
|
||||
if facts is not None:
|
||||
extra_vars["dump_facts"] = facts
|
||||
# Don't use check mode for configuration dumps as we won't get any
|
||||
# results back.
|
||||
run_playbook(parsed_args, "ansible/dump-config.yml",
|
||||
extra_vars=extra_vars, quiet=True,
|
||||
verbose_level=verbose_level)
|
||||
verbose_level=verbose_level, check=False)
|
||||
hostvars = {}
|
||||
for path in os.listdir(dump_dir):
|
||||
LOG.debug("Found dump file %s", path)
|
||||
|
Loading…
Reference in New Issue
Block a user