On Thu, 30 Jan 2020 05:38:17 -0800 (PST) Anand Solomon <[email protected]> wrote:
> - name: Display the query results
> debug:
> msg: "{{ query_result }}"
>
> and I get [["TESTDBA"]], I want the value to be TESTDBA.
The value you're looking for is the first item of the first list
- debug:
msg: "{{ query_result.0.0 }}"
gives
"msg": "TESTDBA"
HTH,
-vlado
--
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 view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/20200130150143.2c3eefcc%40gmail.com.
pgp76s0yTKVK4.pgp
Description: OpenPGP digital signature
