From d385fe326a9b7e43d4a4b3c55de798a755ac2aad Mon Sep 17 00:00:00 2001 From: Mark Goddard Date: Fri, 17 Feb 2017 12:47:26 +0000 Subject: [PATCH] Create dump path locally in dump-config.yml --- ansible/dump-config.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/ansible/dump-config.yml b/ansible/dump-config.yml index b275a95da..56ddb347e 100644 --- a/ansible/dump-config.yml +++ b/ansible/dump-config.yml @@ -6,13 +6,16 @@ # - dump_var_name: Name of the option to dump (optional) - name: Dump configuration from one or more hosts - hosts: "{{ dump_hosts | default('all') }}" - gather_facts: "{{ dump_facts | default(False) }}" + hosts: "{{ dump_hosts }}" + gather_facts: "{{ dump_facts }}" vars: dump_path: /tmp/kayobe-dump-config + dump_facts: no + dump_hosts: all tasks: - name: Create configuration dump directory - file: + local_action: + module: file path: "{{ dump_path }}" state: directory