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.
For more options, visit https://groups.google.com/d/optout.

Reply via email to