Here is the example ansible-playbook, if I want to pass the values of {{ item.first }} and {{ item.second }} through ad-hoc command from the terminal.
How can we do it ?
Thanks in advance..
---
- hosts: localhost
tasks:
- name: Here we are providing a list which have items containing multiple
debug:
msg: "current first value is {{ item.first }} and second value is {{ item.second }}"
with_items:
- { first: lemon, second: carrot }
- { first: cow, second: goat }