📜  如何将多个主机传递给 ansible adhoc 命令? - Shell-Bash 代码示例

📅  最后修改于: 2022-03-11 14:50:15.033000             🧑  作者: Mango

代码示例1
ansible host_1 -m shell -a "docker stats -a --no-stream"; ansible host_2 -m shell -a "docker stats -a --no-stream"