Step 1: 更新DNF安装包库缓存/ Updating the DNF package repository cache sudo dnf makecache Step 2: 安装EPEL包/ Install the epel-release 我的EPEL已经安装了 也许是centOS8 已经自动有了 sudo dnf install epel-release Step 3: 安装Ansible / Installing Ansible sudo dnf install ansible