摘要: 1.开启SSH长连接 ssh_args = -C -o ControlMaster=auto -o ControlPersist=1d \\连接保持一天 2.开启pipelining ansible执行tasks的过程: 1>ansible根据选择的模块生成临时的Python脚本 2>他将所生成的脚 阅读全文
posted @ 2018-11-04 18:12 littlevigra 阅读(739) 评论(1) 推荐(0) 编辑
摘要: cat /etc/ansible/hosts [nodes]10.2.1.232 key=23210.2.1.43 key=43 cat debug.yaml name: test how to use command module hosts: nodes remote_user: root ga 阅读全文
posted @ 2018-11-04 16:44 littlevigra 阅读(627) 评论(0) 推荐(0) 编辑