我想在 Ansible 中无需 ssh 的情况下在 localhost 上运行我的 playbook。我怎样才能做到这一点?我有一个虚拟机。我希望它在那台机器上本地运行。
ssh localhost ansible ansible-inventory
ansible ×1
ansible-inventory ×1
localhost ×1
ssh ×1