Ansible修改自定義端口和登錄用戶


如下所示:

[servers]
host1 ansible_ssh_host=192.0.2.1 ansible_ssh_port=5555 ansible_ssh_user="user"

 

參考:

https://ansible-tran.readthedocs.io/en/latest/docs/intro_inventory.html

https://blog.csdn.net/Jas0n_Liu/article/details/78200695


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM