ansible使用setup獲取遠端服務器主機信息

1,獲取web組全部主機的全部信息web ansible web -m setup 運行結果: 太長,不上圖了,本身看 2,篩選跟ipv4相關的信息shell ansible web -m setup -a 'filter="*ipv4*"' 運行結果:字典格式,svg 192.168.1.9 | SUCCESS => { "ansible_facts": { "ansib
相關文章
相關標籤/搜索