Rocky9安装Ansible

使用 dnf 安装 EPEL 源 + Ansible

安装命令

  • 启用 EPEL(Extra Packages for Enterprise Linux)仓库:

    sudo dnf install epel-release -y

  • 安装 Ansible:

    sudo dnf install ansible -y

  • 验证安装版本:

    [root@Hank-Test0714-CH ~]# ansible --version
    ansible [core 2.14.18]
    config file = /etc/ansible/ansible.cfg
    configured module search path = ['/root/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
    ansible python module location = /usr/lib/python3.9/site-packages/ansible
    ansible collection location = /root/.ansible/collections:/usr/share/ansible/collections
    executable location = /usr/bin/ansible
    python version = 3.9.21 (main, Jun 27 2025, 00:00:00) [GCC 11.5.0 20240719 (Red Hat 11.5.0-5)] (/usr/bin/python3)
    jinja version = 3.1.2
    libyaml = True

相关推荐
不会就选b1 小时前
Linux之网络基础(二)
linux·运维·网络
莫浅子2 小时前
Day 4:USB 2.0 时序与带宽预算
linux·运维·网络
ly76892 小时前
Linux 从入门到实践:系统架构、常用命令、服务管理与故障排查详解
linux·运维·系统架构
小雪崩2 小时前
嵌入式学习 day27:标准IO
linux·c语言·学习
Arnold.Shen3 小时前
Dell Storage SC - 如何发送SupportAssist,并启用安全控制台
linux·安全
青瓦梦滋3 小时前
IP/MAC帧/ARP协议
运维·服务器·网络·网络协议·tcp/ip
wunaiqiezixin3 小时前
MIT 6.S081 xv6 源码精读(Scheduling):sched、scheduler
linux·unix·os·xv6·mit6.s081
书生执笔画浮沉4 小时前
记录一个由浮点运算引起的崩溃
linux
阿 才4 小时前
Matlab(Simulink)使用详解
运维·网络·matlab
St_rive4 小时前
webUI自动化实现及封装
运维·自动化