(干货)Ansible安装(在线|离线),干货ansible
(干货)Ansible安装(在线|离线),干货ansible
Ansible安装
在线安装
root> yum -y install epel-release
root> yum install ansible
离线安装
Yum分析下载依赖
根据目标主机所用操作系统在实验环境安装一个新的操作系统,利用yum分析依赖并下载依赖包到指定目录。
root>yum install -y ansible --downloadonly --downloaddir=/root/ansible
打包并上传到目标主机
root>tar -cvf ansible.tar ./root/ansible
目标主机解压并执行安装脚本
root>tar -xvf ansible.tar && cd ansible && sh install.sh
其中安装脚本就是根据Yum依赖顺序依次rpm -Uvh 依赖包
CentOS7离线安装包ansible.tar暂时上传到CSDN空间
http://download.csdn.net/download/lampqiu/10264225
评论暂时关闭