【发布时间】:2023-04-03 05:24:01
【问题描述】:
如何从寄存器输出(来自上一个任务)传递的循环中过滤掉不需要的值
代码
# assume the list_one below register values.
list_one = [root, a, b, c]
- name: with_together
debug:
msg: "{{ item.0 }} - {{ item.1 }}"
with_together:
- "{{ list_one }}"
- "{{ list_two }}"
我怎样才能只跳过 root 传递给 {{item.0}} ?
谢谢
【问题讨论】:
标签: ansible ansible-2.x ansible-inventory ansible-facts ansible-template