发布时间:2018-12-05 19:04:15
(一)配置文件错误 /etc/ansible/hosts1 执行命令ansible webserver -m setup发生如下错误,[WARNING]: Could not match supplied host pattern, ignoring: webserver [WARNING]: No hosts matched, nothing to do正确的写法是:ansible webservers -m setup.........【阅读全文】
发布时间:2018-12-05 18:30:22
说明:1. 准备3台虚拟机,ip分别是:192.168.18.10,192.168.18.11,192.168.18.12 192.168.18.10:安装ansible,为剩下两台服务器做批量部署(一)安装yum -y install epel-releaseyum -y install ansible(二)编辑配置文件vim /etc/ansible/hosts 添加服务器(三)配置客户端(无密码登录)1. ssh-keygen2..........【阅读全文】