playbook常用操作

playbook常用操作

1、检查playbook语法错误

ansible-playbook -i hosts deploy_coredns.yaml --syntax-check

2、查看playbook主机组

ansible-playbook -i hosts deploy_coredns.yaml --list-hosts

 

posted @ 2019-02-08 22:14  effortsing  阅读(188)  评论(0编辑  收藏  举报