Hello ansible team can anyone suggest?

On Wed, 10 Jul 2019, 20:32 Kunalsing Thakur, <[email protected]>
wrote:

> file.txt
>
> rpmname: version
> rpmname: version
>
>
>
>
> Playbook:-
> - hosts: all
>   gather_facts: false
>   tasks:
>   - name: store the value
>     shell: cat /etc/ansible/playbooks/file.txt
>     register: versions
>   - name: Ansible Dictionary variable Example
>     debug:
>       msg: "rpmname is {{ item.key}} and value is {{item.value}}"
>
>
>
> i want to access multiple key values in ansible -playbook to perform
> operation. looks like something is missing to access that values.
>
> --
> 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/0c5af08c-b9b6-41eb-856a-45bc662c4cf0%40googlegroups.com
> <https://groups.google.com/d/msgid/ansible-project/0c5af08c-b9b6-41eb-856a-45bc662c4cf0%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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/CANErU6%3DUnXt5j6s9a6Wr9jnXM4RPRuxOnDYanSRLgLgsTv1ZGg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to