CentOS离线安装应用
以ansible为例 可联网主机更换阿里云yum源1234curl -o /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-7.repocurl -o /etc/yum.repos.d/epel.repo https://mirrors.aliyun.com/repo/epel-7.repoyum clean allyum makecache 安装所需软件包12yum-utils工具(可使用yumdownloader命令),createrepo(生成repo库)yum install yum-utils createrepo 下载ansible依赖包123mkdir ansible-offlinecd ansible-offlineyumdownloader --resolve --destdir ./ ansible 创建repo仓库12cd ..createrepo ansible-offline 编写安装脚本1vim...