gitlab+jenkins+maven+docker持续集成(九)——centos7 ansible安装及问题汇总
2017-08-25 10:16
966 查看
centos7最小化安装ansibles
1、error: cffi 1.6.0 is installed but cffi>=1.7 is required by set(['cryptography'])
安装ansible
#easy_install simplejson
#easy_install pip
#yum install gcc python-devel
#easy_install ansible
ansible验证安装
设置无密码ssh访问远程主机:
默认路径 /etc/ansible/hosts 主机列表可以是静态配置文件,可通过 -i 选项指定。
1、error: cffi 1.6.0 is installed but cffi>=1.7 is required by set(['cryptography'])
yum remove -y python-cffi pip install cffi>=1.8.0
2、easy_install command not found
wget https://bootstrap.pypa.io/ez_setup.py -O - | python安装ansible
#easy_install simplejson
#easy_install pip
#yum install gcc python-devel
#easy_install ansible
ansible验证安装
设置无密码ssh访问远程主机:
#ssh-keygen -t rsa #ssh-copy-id -i ~/.ssh/id_rsa.pub root@192.168.10.24创建ansible主机列表:
默认路径 /etc/ansible/hosts 主机列表可以是静态配置文件,可通过 -i 选项指定。
#mkdir /etc/ansibles # vi /etc/ansible/hosts [test] 192.168.10.24测试远程主机的运行状态
# ansible test -m ping 192.168.10.24 | SUCCESS => { "changed": false, "ping": "pong" }
相关文章推荐
- gitlab+jenkins+maven+docker持续集成(二)——maven安装配置
- gitlab+jenkins+maven+docker持续集成(一)——Jenkins安装配置
- gitlab+jenkins+maven+docker持续集成(四)——Extended E-mail Notification配置
- gitlab+jenkins+maven+docker持续集成(十)——参数化构建过程之多环境tag构建
- gitlab+jenkins+maven+docker持续集成(七)——.Jenkins Pipeline持续集成
- gitlab+jenkins+maven+docker持续集成(十一)——sonarqube及sonarscanner代码审查
- gitlab+jenkins+maven+docker持续集成(六)——.Jenkins获取git tags代码进行持续集成
- gitlab+jenkins+maven+docker持续集成(三)——自动构建
- CentOS minimal安装后出现的各种模块丢失问题汇总
- 在VMware上安装CentOS遇到的问题汇总
- Docker安装CentOS遇到的问题
- centos 6.5 安装gitlab安装需注意的问题
- Centos6.5_x86上Oracle11g2 32位的安装与卸载以及相关问题汇总
- 在 CentOS 7 上使用 Docker 部署安装 GitLab
- 关于 centos下docker安装中遇到的问题 小小吐嘈一下下
- centos 6.5安装GitLab全过程和问题记录
- CentOS 6.5 + Nginx 1.8.0 + PHP 5.6(with PHP-FPM) 负载均衡源码安装 之 (四)问题汇总
- CentOS 6.6下安装Jenkins和Maven以及私服nexus的步骤
- centos下gitlab安装过程和问题