ansible 獲取列表變量長度

使用過濾器獲取list lengthshell shell: "[[ {{ groups.test | length }} = 1 ]]spa   三種方式均可以對象 when:      - ( groups.test | lenght ) == 2get when:      - (( groups.test | lenght ) == 2)table when:      - groups.
相關文章
相關標籤/搜索