ansible使用帮助

获取模块
[cloud@ansible-server ~]$ ansible-doc  -l   
获取模块具体参数
[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
}

网站名称:ansible使用帮助
文章网址:http://hxwzsj.com/article/ihciie.html

其他资讯

Copyright © 2025 青羊区翔捷宏鑫字牌设计制作工作室(个体工商户) All Rights Reserved 蜀ICP备2025123194号-14
友情链接: 响应式网站设计方案 达州网站设计 成都响应式网站建设公司 手机网站设计 成都网站制作 成都网站建设 成都网站建设流程 成都网站建设公司 高端网站设计推广 成都网站建设 成都网站建设 成都响应式网站建设 移动手机网站制作 成都定制网站建设 成都企业网站建设公司 品牌网站建设 成都网站建设 企业网站建设 成都商城网站建设 网站制作 成都网站制作 成都模版网站建设