Cli parser update
This commit is contained in:
parent
0746f69628
commit
4919ddc263
@ -9,7 +9,7 @@
|
|||||||
tasks:
|
tasks:
|
||||||
- name: Convert params dictionary to command line arguments
|
- name: Convert params dictionary to command line arguments
|
||||||
set_fact:
|
set_fact:
|
||||||
cli_args: "{{ script_params | dict2items | map('format', '--{key} {value}') | join(' ') }}"
|
cli_args: "{% for key, value in script_params.items() %}--{{ key }} {{ value }} {% endfor %}"
|
||||||
|
|
||||||
- name: Show arguments to be used
|
- name: Show arguments to be used
|
||||||
debug:
|
debug:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user