ansible --- ansible regular command set and Ad-Hoc

ansible正则

Basic Usage

ansible <pattern> -m <module_name> -a <arguments>

Some basic mode

All (full amount) match

Match all hosts, allor the *same number function, the following example

// 检测所有主机存活情况
ansible all -m ping
ansible "*" -m ping

Guess you like

Origin www.cnblogs.com/peilanluo/p/11890054.html