Cli parser update

This commit is contained in:
Yosafat Marselino 2025-05-17 10:09:45 -04:00
parent 0746f69628
commit 4919ddc263

View File

@ -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: