ansible的安装及配置文件介绍

名字解释

执行ansible的主机一般称为主控端,中控,master或堡垒机

ansible安装

1. 命令行查看Python
# python --vesion
python 版本需要是2.4以上版本(Python 3.0是不同语言)

2. 使用yum安装ansible时,可能会出现没有可用软件包ansible的情况,这个时候需要先安装epel (什么是epel)

# yum -y install ansible
已加载插件:fastestmirror, langpacks
Loading mirror speeds from cached hostfile
没有可用软件包 ansible。
错误:无须任何处理

# yum -y install epel-release
# pwd;ls -l epel*
/etc/yum.repos.d
-rw-r--r-- 1 root root  951 10月  3 2017 epel.repo
-rw-r--r-- 1 root root 1050 10月  3 2017 epel-testing.repo

2. 安装ansible

# yum -y install ansible

ansible是基于python开发,安装过程中,会看到需要安装很多python相关的依赖包

3. ansible版本查看

# ansible --version
ansible 2.9.18
  config file = /etc/ansible/ansible.cf

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值