ansible -i hosts 172.16.100.197 -m setup # -i 指定 hosts 文件,
ansible webServer -m command -a 'echo 123456 |passwd --stdin yunwei' # 配置密码
ansible -i hosts 172.16.100.197 -m setup -a "filter=ansible_distribution" # 获取系统信息
标签:setup,常用命令,ansible,hosts,172.16,100.197
From: https://www.cnblogs.com/Star-Haitian/p/17003399.html