先安装yum的软件通用源 yum install epel-release yum install ansible 或者安装pip python软件包管理工具 yum install pip pip install ansible