ansible-7個命令

1.ansible: 只執行 單條命令,後面跟主機和選項部分 ansible -h ansible 127.0.0.1-a 'date' //-a 跟模塊的參數,默認使用的是cmmand模塊 ansible 127.0.0.1-m shell-a 'date' //-m 指定執行的模塊 ansible all-i /etc/ansible/hosts-a 'date' //-i:指定invento
相關文章
相關標籤/搜索