安装部署Ansible

这里以RedHat8为例子

真机当作YUM源服务器

1.tar -xf /linux-soft/ansible_soft.tar.ga -C /var/ftp

2.dnf -y install createrepo

3.createrepo /var/ftp/ansible_soft/

 

2.虚机配置YUM源,安装软件

1.vim /etc/yum.repos.d/ansible.repo 

2.[andible] 

name=ansible

baseurl=ftp://192.168.4.254/ansible_soft/

gpgcheck=0

3. dnf -y install ansible

 

posted @ 2024-01-15 21:31  每天都想写博客  阅读(20)  评论(0)    收藏  举报