On Wed, 12 Feb 2020 19:52:31 -0800 (PST)
Anand Solomon <[email protected]> wrote:

> How will get the value of item.key and item.value to variable
> 
>         sqlqry = "{{ item.key }}"
>         sqlid = "{{ item.value }}"

Declare the vars in the scope of the task. For example

   - debug:
        msg: "{{ sqlqry }}: {{ sqlid }}"
      vars:
        sqlqry: "{{ item.key }}"
        sqlid: "{{ item.value }}"
      loop: "{{ scripts|dict2items }}"

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/20200213052231.5ed71ce2%40gmail.com.

Attachment: pgpnnzNlkBhSO.pgp
Description: OpenPGP digital signature

Reply via email to