From a53e3d615da2bffb81be29da53b36607ea3815bc Mon Sep 17 00:00:00 2001 From: Mark Goddard Date: Wed, 5 Jul 2017 19:02:23 +0100 Subject: [PATCH] Force no check mode during configuration dump --- kayobe/ansible.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/kayobe/ansible.py b/kayobe/ansible.py index 7e72c9c01..6a2570761 100644 --- a/kayobe/ansible.py +++ b/kayobe/ansible.py @@ -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)