Ansible.cfg 配置示例:使用 Ansible 用户远程连接
[defaults] remote_user = ansible remote_port = 22 ask_pass = True
[privilege_escalation] become = True become_method = sudo
[ssh_connection] ssh_args = -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null scp_if_ssh = True
原文地址: https://www.cveoy.top/t/topic/m65Y 著作权归作者所有。请勿转载和采集!