ansible duplicating task output using with_item

后端 未结 0 1038
孤街浪徒
孤街浪徒 2021-02-05 23:26
hosts:
[srvs]
srv1 disk=/dev/sdb
srv2 disk=/dev/sdc

tasks:
  - name: Return the hostname and that hostname disk var
    debug:
      msg: \' hostname: {{ item }} - disk         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题