it seems to be a bash behaviour which removes the double quotes before 
passing the parameter.

The solution is to *pass the parameter in simple-quoted double-quotes* like 
that:
- name: Checking for duplicate keys in json answer
  local_action: script 
/home/actionmystique/Bash/Scripts/json-check-duplicate-keys.sh '"{{ 
uri_return.content }}"'
  register: json_check_duplicate_keys
  failed_when: json_check_duplicate_keys.stderr 
...
        "Checking /tmp/data.json...", 
        "----", 
        "Duplicate keys found in /tmp/data.json:", 
        "* subinterface", 
        "* subinterface", 
        "* subinterface", 
        "* subinterface", 
        "* subinterface", 
        "* subinterface", 
        "* subinterface", 
        "* subinterface", 
        "* interface", 
        "* interface", 
        "* interface", 
        "* interface", 
        "* interface", 
        "* interface", 
        "* interface", 
        "* interface", 
        "* interface", 
        "* interface", 
        "* interface", 
        "* interface", 
        "* interface", 
        "* interface", 
        "* interface", 
        "* interface", 
        "* interface", 
        "* interface", 
        "* interface", 
        "* interface", 
        "* interface", 
        "* interface", 
        "* interface", 
        "* interface", 
        "* interface", 
        "* interface", 
        "* interface", 
        "* interface", 
        "* interface", 
        "* interface", 
        "* interface", 
        "* interface", 
        "* interface", 
        "* interface", 
        "* interface", 
        "* interface", 
        "* interface", 
        "* interface", 
        "* interface", 
        "* interface", 
        "* interface", 
        "* interface", 
        "* interface", 
        "* interface", 
        "* interface", 
        "* interface", 
        "* interface", 
        "* interface", 
        "* interface", 
        "* interface", 
        "* interface", 
        "* interface", 
        "* interface", 
        "* interface", 
        "* interface", 
        "* interface", 
        "* interface", 
        "* interface", 
        "* interface", 
        "* interface", 
        "* interface", 
        "* interface", 
        "* interface", 
        "* interface"


-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/43ca6d23-6ce3-41c0-94df-2325a4faf924%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to