ansible-playbook -l 选项
-l <SUBSET>, --limit <SUBSET>
further limit selected hosts to an additional pattern
限制脚本只在指定的ip对应的机器上执行。
ansible-playbook myplaybook.yml -l 10.11.12.13
-l <SUBSET>, --limit <SUBSET>further limit selected hosts to an additional pattern
限制脚本只在指定的ip对应的机器上执行。
ansible-playbook myplaybook.yml -l 10.11.12.13