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