ansible使用幫助

獲取模塊
[cloud@ansible-server ~]$ ansible-doc  -l   
獲取模塊具體參數(shù)
[cloud@ansible-server ~]$ ansible-doc  -s  模塊名稱
    
[cloud@ansible-server ~]$ ansible  agent  -m  copy  -a "src=/home/cloud/agent-file.txt  dest=/home/cloud/agent.txt owner=cloud  group=cloud mode=644"
ansible-agent | SUCCESS => {
    "changed": false, 
    "checksum": "da39a3ee5e6b4b0d3255bfef95601890afd80709", 
    "dest": "/home/cloud/agent.txt", 
    "gid": 1000, 
    "group": "cloud", 
    "mode": "0644", 
    "owner": "cloud", 
    "path": "/home/cloud/agent.txt", 
    "size": 0, 
    "state": "file", 
    "uid": 1000
}

當(dāng)前文章:ansible使用幫助
網(wǎng)址分享:http://muchs.cn/article4/ihciie.html

成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供網(wǎng)站設(shè)計公司、企業(yè)建站、品牌網(wǎng)站制作、網(wǎng)站設(shè)計、營銷型網(wǎng)站建設(shè)、手機網(wǎng)站建設(shè)

廣告

聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請盡快告知,我們將會在第一時間刪除。文章觀點不代表本網(wǎng)站立場,如需處理請聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時需注明來源: 創(chuàng)新互聯(lián)

成都網(wǎng)站建設(shè)公司