Ansible 命令 安装 sh yum install ansible apt install ansible sh pip3 install ansible for python2 - default installation pip install ansible 卸载 sh rm -rf $HOME/.ansible rm -rf $HOME/.ansible.cfg sudo rm -rf /usr/local/lib/python2.7/dist-packages/ansible sudo rm -rf /usr/local/lib/python2.7/dist-packages/ansible-2.5.4.