Ansible-安装
第一步:安装我们的epel扩展源
yum -y install epel-release
我这里会报/var/run/yum.pid 已被锁定,如果没有直接进行下一步
[root@master home]# yum -y install epel-release
已加载插件:fastestmirror, langpacks
/var/run/yum.pid 已被锁定,PID 为 22410 的另一个程序正在运行。
Another app is currently holding the yum lock; waiting for it to exit...
另一个应用程序是:PackageKit
内存: 30 M RSS (449 MB VSZ)
已启动: Thu May 4 20:06:59 2023 - 00:23之前
状态 :睡眠中,进程ID:22410
解决方法:删除/var/run/yum.pid,即 rm -rf /var/run/yum.pid ,重新执行第一步
第二步:安装 ansible
yum -y install ansible
如果还报/var/run/yum.pid 已被锁定,还是直接进行删除,然后重新执行 yum -y install ansible
第三步,验证是否安装成功 ansible --version
[root@master home]# ansible --version ansible 2.9.27 config file = /etc/ansible/ansible.cfg configured module s
Ansible安装教程:解决yum.lock问题及配置,

最低0.47元/天 解锁文章
71

被折叠的 条评论
为什么被折叠?



