ansible 命令行使用模块

删除docker

ansible all -m -a 'name=docker-engine state=absent' 

删除 docker-engine-selinux

ansible all -m -a 'name=docker-engine-selinux state=absent' 

删除文件

ansible all -m file -a 'path=/etc/yum.repos.d/docker-testing.repo state=absent' -u test -b