官网:
https://github.com/ansible/ansible
简介:
ansible是自动化运维工具,基于Python开发,集合了众多运维工具(puppet、cfengine、chef、func、fabric)的优点,实现了批量系统配置、批量程序部署、批量运行命令等功能。
安装:
yum install -y ansible
修改配置文件
vim /etc/ansible/ansible.cfg
#开启日志,111行
log_path = /var/log/ansible.log
#取消下面注释,第一次ssh不检查
host_key_checking = False
#取消下面注释,修改默认模块
module_name = shell