这是 ansible-playbook 示例,如果我想通过终端的临时命令传递 {{ item.first }} 和 {{ item.second }} 的值。
我们该怎么做?
提前致谢..
---
- 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 }