
ansible
xyh592
这个作者很懒,什么都没留下…
展开
-
ansible--key
1.客户端生成key[root@localhost #] ssh-keygen2. 拷贝到主机组 all ::: 待验证 ansible -i hosts all -m authorized_key -a "user=root key=\"{{ lookup('file', '/root/.ssh/id_rsa.pub') }}\" state=present"...原创 2018-05-02 16:09:00 · 751 阅读 · 0 评论 -
Aborting, target uses selinux but python bindings (libselinux-python) aren't installed!
1.安装yum install -y libselinux-python原创 2018-05-15 21:22:31 · 3342 阅读 · 0 评论 -
ansible 优化
/* 优化⼀一: 开启SSH⻓长连接 */ ssh_args = -C -o ControlMaster=auto -o ControlPersist=60s ControlPersist=60s 这个参数是设置整个⻓长连接保持时间为60s /* 优化⼆二: 开启Pipelining , ansible执⾏行行的整个流程就少了了⼀一个PUT脚本去远程服务端的流程 */ #pipelin...原创 2018-12-11 13:15:38 · 716 阅读 · 2 评论