CentOS7 安装Ansible

1、使用python包管理工具pip安装Ansible:

[root@localhost ~]# yum -y install epel-release
[root@localhost ~]# yum -y install python-pip
[root@localhost ~]# yum clean all
[root@localhost ~]# pip install --upgrade pip
[root@localhost ~]# pip install ansible

 2、安装Vagrant

[root@localhost download]# wget https://releases.hashicorp.com/vagrant/2.2.2/vagrant_2.2.2_x86_64.rpm
[root@localhost download]# rpm -ivh vagrant_2.2.2_x86_64.rpm 

猜你喜欢

转载自www.cnblogs.com/yard/p/10103860.html