Create dump path locally in dump-config.yml
This commit is contained in:
parent
a3dc154300
commit
d385fe326a
@ -6,13 +6,16 @@
|
|||||||
# - dump_var_name: Name of the option to dump (optional)
|
# - dump_var_name: Name of the option to dump (optional)
|
||||||
|
|
||||||
- name: Dump configuration from one or more hosts
|
- name: Dump configuration from one or more hosts
|
||||||
hosts: "{{ dump_hosts | default('all') }}"
|
hosts: "{{ dump_hosts }}"
|
||||||
gather_facts: "{{ dump_facts | default(False) }}"
|
gather_facts: "{{ dump_facts }}"
|
||||||
vars:
|
vars:
|
||||||
dump_path: /tmp/kayobe-dump-config
|
dump_path: /tmp/kayobe-dump-config
|
||||||
|
dump_facts: no
|
||||||
|
dump_hosts: all
|
||||||
tasks:
|
tasks:
|
||||||
- name: Create configuration dump directory
|
- name: Create configuration dump directory
|
||||||
file:
|
local_action:
|
||||||
|
module: file
|
||||||
path: "{{ dump_path }}"
|
path: "{{ dump_path }}"
|
||||||
state: directory
|
state: directory
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user