(一)配置文件错误 /etc/ansible/hosts
1 执行命令ansible webserver -m setup发生如下错误,
[WARNING]: Could not match supplied host pattern, ignoring: webserver
[WARNING]: No hosts matched, nothing to do
正确的写法是:ansible
webservers -m setup
2. 执行命令ansible all -m ping发生如下错误,原因是在配置文件中ip地址写错了
阅读(8077) | 评论(0) | 转发(0) |