ansible 语法校验-测试运行

(1) 检测语法
  ansible-playbook --syntax-check /path/to/playbook.yaml
  (2) 测试运行
  ansible-playbook -C /path/to/playbook.yaml
  (3)运行
  ansible-playbook /path/to/playbook.yaml

原文地址:https://www.cnblogs.com/fanlong0212/p/12180924.html