ansible使用

配置好ansible之后

cat  tbase_all.txt

[all:vars]

ansible_ssh_user=root

ansible_ssh_port=

ansible_ssh_pass=

ansible_ssh_timeout=2

[tbase-all]

IP地址

 

 

使用方法

ansible -i tbase_all.txt  tbase-all  -m  shell -a "相关命令"

posted @ 2021-07-22 15:27  罗论明  阅读(59)  评论(0编辑  收藏  举报