首页 > 解决方案 > 如何从ansible中的嵌套列表中获取项目列表

问题描述

- set_fact:
    cli_list:
      - - first list
      - - second list 
      - - third list

我期待这种格式的输出,如何在ansible中做到这一点?

cli_list:
  - first list
  - second list
  - third list

标签: ansibleansible-template

解决方案


推荐阅读