diff --git a/curl_execute.yaml b/curl_execute.yaml index 8d5d25b..9bac9fb 100644 --- a/curl_execute.yaml +++ b/curl_execute.yaml @@ -9,7 +9,7 @@ tasks: - name: Convert params dictionary to command line arguments 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 debug: