如下所示:
[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
如下所示:
[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删除。