在 [webservers] inventory 组中,localhost ansible_connection=local 表示什么?
[webservers]
localhost ansible_connection=local
webservers 组永远不能包含 localhost 以外的主机。
webservers
localhost
Ansible 应直接在控制节点上运行命令来管理 localhost,而不是使用 SSH。
Ansible 必须先在每台受管主机上安装自身,然后才能运行任务。
Ansible 应使用本地存储的密码,通过 SSH 连接到 localhost。